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:
    144
    Likes Received:
    125
    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:
    144
    Likes Received:
    125
    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);
    }