Redirect Google Users?

Russian425

Regular Member
Jr. VIP
Joined
Jun 7, 2011
Messages
352
Reaction score
154
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?
 
Back
Top