Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post

    Address bad information

    Hi. I am building a site wherein i want the user to get redirected to a particular page.
    For eg. its written as google.when you click on google, the back link takes it to google.com.

    Is it possible to redirect the user to the google.com page but the addressbar shows it as http://www.yahoo.com....??
    Is it possible to change the address information at runtime...??
    if yes, how..??

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    why would you want to mislead your visitors as to what page they are looking at?
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Quote Originally Posted by milanchheda View Post
    Hi. I am building a site wherein i want the user to get redirected to a particular page.
    For eg. its written as google.when you click on google, the back link takes it to google.com.

    Is it possible to redirect the user to the google.com page but the addressbar shows it as http://www.yahoo.com....??
    Is it possible to change the address information at runtime...??
    if yes, how..??
    Quote Originally Posted by bazz View Post
    why would you want to mislead your visitors as to what page they are looking at?
    I agree. You're question raises ethical questions, would you care to expand on what you're attempting to do before we rule this as a phishing page attempt?

    To actually answer you're question: yes.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #4
    New Coder
    Join Date
    Feb 2009
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    I am not trying to perform phishing or some kind of hacking.
    its just that there is a page whose information i don't want to display so as to maintain security.
    there is this profile page which will have userid along with some additional info.
    so when his name is clicked its page gets opened.
    so i want the address info to remain the same except that the page should display the info of that particular user whose name is clicked...
    so the site name would remain the same irrespective of the links getting clicked..

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    You can do this with javascript through ajax. Information will still be passed based on the user selected, there is little you can do to avoid this.
    You should implement any necessary security on you're pages though, trying to blind link isn't a very good way to secure you're website pages.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •