Hide pop up from google?

Status
Not open for further replies.

jimmyringtone

New member
Mar 24, 2007
5
0
0
Hey guys,

I want to run an exit popup on one of my sites but I don't want it to pop for any traffic coming from google - especially the google spiders. Obviously google frowns upon popping anything directly off of the homepage. We get a lot of traffic from other sources that I would like to have a popup for - but I don't want to have two seperate sites (one for google - one for everyone else). Does anyone have any resources or advice on this?

Thanks
Jimmy R
 


I am assuming this is an issue with paid search?

Just send google traffic to a different landing page that does not have the pop-up.

I.e. HomePages That does have the popup
and www.homepage.com/googlelandingpage that does not have the pop.

Keep everything else on the page the exact same, it is not a totally new website, more of a copy and past job deleting a few lines of code...
 
Diorex,

This would work - but we need to hide it from the google spiders... so I think we have to sniff the incoming traffic and if its from google then DO NOT show the exit popup.

Jim
 
Diorex,

This would work - but we need to hide it from the google spiders... so I think we have to sniff the incoming traffic and if its from google then DO NOT show the exit popup.

Jim

Cloak it
I think rssgm or yacg have cloaker built in
 
You can use the following code to hide the popup from Google and other SE's, you may need to add the adwords bot to the list as well, but thats not hard...

PHP:
IF(!isset($_SERVER['HTTP_USER_AGENT']))
    {
        $user_agent = '';
    }
    ELSE
    {
        $user_agent = $_SERVER['HTTP_USER_AGENT'];
    }

    $search_engines[] = 'Fast';
    $search_engines[] = 'Slurp';
    $search_engines[] = 'Ink';
    $search_engines[] = 'Atomz';
    $search_engines[] = 'Scooter';
    $search_engines[] = 'Crawler';
    $search_engines[] = 'bot';
    $search_engines[] = 'Genius';
    $search_engines[] = 'AbachoBOT';
    $search_engines[] = 'AESOP_com_SpiderMan';
    $search_engines[] = 'ia_archiver';
    $search_engines[] = 'Googlebot';
    $search_engines[] = 'UltraSeek';
    $search_engines[] = 'Google';

    foreach ($search_engines as $key => $value) 
    {
        IF($user_agent != '')
        {
            if(strstr($user_agent, $value)) 
            {
                $is_search_engine = 1;
            }
        }
    }

if($is_search_engine != 1) {
***POPUP CODE HERE***
}

Simply put, this script checks the user agent of the visitor and if it determines its one from the list above, it wont show your popup code. I dont take credit for this code, it was something I found a while back and used on a couple things, its also untested, let me know if that works for you.
 
I believe the code for Google Adwords bot is pagead2.googlesyndication.com

Do let us know the outcome of using the script okay?
 
Status
Not open for further replies.