1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Show different URL in address bar

Discussion in 'HTML & JavaScript' started by nat.soft, Nov 10, 2011.

  1. nat.soft

    nat.soft Junior Member

    Joined:
    Aug 17, 2009
    Messages:
    110
    Likes Received:
    42
    Hi,

    Is it possible to show a different URL in the address bar? For example,

    Displayed page: http://www.mywebsite.com/page.html

    URL in the address bar: http://www.anotherwebsite.com/
     
  2. DanDanger

    DanDanger Junior Member

    Joined:
    Nov 11, 2010
    Messages:
    129
    Likes Received:
    147
    there was an exploit years ago that could do this, but its been patched in all major browsers.

    your probably thinking of domain forwarding? if so you'll need to own both domains.

    what you cant do is this:
    displayed page: mywebsite.com/fakelogin.html
    url in address bar: hotmail.com/signin.html
     
    • Thanks Thanks x 1
  3. nat.soft

    nat.soft Junior Member

    Joined:
    Aug 17, 2009
    Messages:
    110
    Likes Received:
    42
    That makes sense, I just wanted to learn whether or not it was possible and it seems not.
     
  4. EdgarFoX

    EdgarFoX Newbie

    Joined:
    Nov 18, 2011
    Messages:
    16
    Likes Received:
    2
    You can fake it using php function header. or iframes
     
  5. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
  6. upl8t

    upl8t Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    475
    Likes Received:
    84
    Location:
    New Scotland
    You can still do this with php curl.
     
  7. sniper272

    sniper272 Regular Member

    Joined:
    Sep 18, 2008
    Messages:
    397
    Likes Received:
    77
    iframe? or dot.tk :)
     
  8. YoutubeSlanger

    YoutubeSlanger Junior Member

    Joined:
    Nov 9, 2011
    Messages:
    184
    Likes Received:
    22
    you care to share more..........