Redirect Google Users?

Discussion in 'Black Hat SEO' started by Russian425, Aug 6, 2015.

  1. Russian425

    Russian425 Regular Member

    Joined:
    Jun 7, 2011
    Messages:
    315
    Likes Received:
    150
    Quick question, I need a script that will redirect users that came from Google to another url. Only the ones from Google. The site is on https.
    I tried to find if the user came from Google by using:
    Code:
    $referrer = parse_url($_SERVER['HTTP_REFERER']);
        if(strpos($referrer['host'], 'google') !== FALSE){
            
        }
    But so far no luck
    Can anyone help?