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

Redirect Question

Discussion in 'HTML & JavaScript' started by agag2, Sep 5, 2014.

  1. agag2

    agag2 Supreme Member

    Joined:
    Feb 17, 2009
    Messages:
    1,308
    Likes Received:
    254
    Hi

    I'm wondering if it's possible to create a redirect without the user being able to "click back" to find out from which domain he was directed from. For example, if I redirect user from example.com to someexample.com assuming he didnt know which url he clicked on - is there a way to disable him finding out by pressing back button?
     
  2. redrubies

    redrubies Supreme Member

    Joined:
    Jan 17, 2011
    Messages:
    1,424
    Likes Received:
    2,560
    Location:
    USA
    With a 301 redirect, the person will not be at the site he intended to go to, so that's an option you might consider.
     
  3. journeycoder

    journeycoder Newbie

    Joined:
    Aug 31, 2014
    Messages:
    27
    Likes Received:
    3
    Occupation:
    Coder: asp.net, js, php,wordpress, genesis,tools,
    Location:
    bestmicroovens.com
    Home Page:
    I hope you enjoy! I am sure that many people will put that function to good use
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    Doesn't look like anyone actually read OP's post. You could use HTML5's history.pushState API to modify the back button's url.
     
    Last edited: Sep 11, 2014