Ranking with redirection?

Discussion in 'Black Hat SEO' started by Bot Solutions, Sep 3, 2015.

  1. Bot Solutions

    Bot Solutions Regular Member

    Joined:
    Aug 19, 2014
    Messages:
    244
    Likes Received:
    390
    Occupation:
    Bot maker
    Location:
    Hungary
    Is it possible to keep rankings with js redirection?

    Code:
    if (document.referrer.match(/google\.|bing\./)) window.location.href = "new url";
    So basically I would keep the content of the site, but if the user comes from a search engine he gets redirected.

    Let the why part be my concern. :)