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

Javascript redirect but keep the referer, possible?

Discussion in 'Cloaking and Content Generators' started by jiajilah, Aug 15, 2011.

  1. jiajilah

    jiajilah Junior Member

    Joined:
    Jun 6, 2008
    Messages:
    138
    Likes Received:
    122
    Is there a way to do this?
    Trying hard and search for an hour but still no luck.
    Now turning back to BHW :D
    Please advice, thanks!
     
  2. jiajilah

    jiajilah Junior Member

    Joined:
    Jun 6, 2008
    Messages:
    138
    Likes Received:
    122
    Got my question answered.

    Set a cookie and call it back.

    document.cookie = "realreferrer="+encodeURIComponent(document.referrer)+"; path=/";

    if (realreferrer.length > 0) {
    pageTracker._setReferrerOverride(realreferrer);
    }