#1
  1. Contributing User
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Jun 2004
    Location
    I live on the internet
    Posts
    575
    Rep Power
    14

    Google referral or no-referral?


    I was thinking about another post, that ran a joke about hijacking. Something hit me on how I could stop this, but then the question is if Google will show as a referral from the website or does it cash the links then reload as a no-referral?

    I had done something simpler to this on another site, where another site had a javascript popup, but the domain that it was on I could not see where the traffic was coming from in my state, so I 301'ed it to another domain and I could see the referralís domain.
    wazza wazza.. boom boom... something something... SEO!

    Before you build your next website read this bog!
  2. #2
  3. PHP & MySQL guru
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Apr 2004
    Location
    UK
    Posts
    696
    Rep Power
    14
    do you mean the googlebot?

    If so, you won't have any luck there because it does not pass any referer in the header.
  4. #3
  5. Contributing User
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Jun 2004
    Location
    I live on the internet
    Posts
    575
    Rep Power
    14
    I have been doing some digging around my logs. ;)

    Found this:
    66.249.65.210 - - [20/Apr/2005:04:08:32 -0400] "GET /gbi.php?iid=116 HTTP/1.1" 302 232 "-" "Googlebot-Image/1.0"

    Notice the 302? I noticed in each header that any of the google bots header request was a 200 which is gooood, as well as 302s and 301s at some point, etc.

    So with a status code 302 in googles header and a server on PHP 4.2.3 I should be able to do this:

    PHP Code:
    if(preg_match("/googlebot/"$_SERVER['HTTP_USER_AGENT'] == 'googlebot' $_SERVER['REDIRECT_STATUS'] == '302' ) {
    // REDIRECT GOOGLE TO SOME BLANK PAGE OR TO ANOTHER SITE!
    header('location:http://www.somedomain.com/302.html');
    exit;

    Only problem Im not on php 4.2.x so I donít have the redirect_status to my access and I donít feel like installing php 4.2.x. I think that will work, but we wont know till someone gives it a try!

    Why I think it will work is because Google will first store the url that has the redirect in it, then once it pulls up the url to craw the link it will get a redirect, and because of this it will show in the logs. ;) -- Now you can shoot me down!
    Last edited by l3vi; Apr 20th, 2005 at 06:44 PM.
  6. #4
  7. http://tinyurl.com/cz56g
    SEO Chat Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    D0RDRECHT NL
    Posts
    6,063
    Rep Power
    30
    I wonder if anyone tried this method already. I guess its success depends on how G structures its database, but we can only be sure if we try. Did any of the PHP gurus around here take a shot at it?

Similar Threads

  1. Article: new Google feature called Google Suggest
    By dirtdog1960 in forum SEO Chat Articles
    Replies: 0
    Last Post: Dec 12th, 2004, 02:09 AM
  2. Google - Tearing me up again..
    By clasione in forum Search Engine Optimization
    Replies: 2
    Last Post: Oct 7th, 2004, 05:00 PM
  3. Using And, In, or etc.
    By Jasontnyc in forum Google Optimization
    Replies: 3
    Last Post: Sep 2nd, 2004, 10:42 AM
  4. Fooling Google
    By Victor in forum Google Optimization
    Replies: 18
    Last Post: Jul 29th, 2004, 12:10 PM
  5. Any thoughts on this Google Analysis Article?
    By dockrue in forum Google Optimization
    Replies: 60
    Last Post: Dec 5th, 2003, 04:25 PM

IMN logo majestic logo threadwatch logo seochat tools logo