1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP script to redirect adwords bot to different page?

Discussion in 'Adwords' started by PepsiGuy, Jul 22, 2009.

  1. PepsiGuy

    PepsiGuy Registered Member

    Joined:
    Apr 25, 2009
    Messages:
    81
    Likes Received:
    130
    I'm looking for a script that will redirect the adwords bot to a different page than everyone else.

    Anybody got one? Willing to pay if it works.
     
  2. dollarkid

    dollarkid Newbie

    Joined:
    Jan 11, 2007
    Messages:
    20
    Likes Received:
    3
    well a very simple redirect would be something like this -

    PHP:
    $agent $_SERVER['HTTP_USER_AGENT'];
    if (
    eregi("google"$agent)) {header("HTTP/1.1 301?);
    header("
    Locationhttp://path.com/to-your-new-page);
    exit(); }
    i'd probebly also look at filtering based on IP's as the adwords bot has been known to use IE and mozilla useragents (probebly in an attempt to catch ppl doing exactly what you're trying to do :))

    list of google ip's here - http://www.iplists.com/google.txt
     
    • Thanks Thanks x 1
    Last edited: Jul 23, 2009
  3. dollarkid

    dollarkid Newbie

    Joined:
    Jan 11, 2007
    Messages:
    20
    Likes Received:
    3
    forum dupe'd my post.. admin plz delete, sry
     
    Last edited: Jul 23, 2009
  4. dollarkid

    dollarkid Newbie

    Joined:
    Jan 11, 2007
    Messages:
    20
    Likes Received:
    3
    forum dupe'd my post.. admin plz delete, sry
     
    Last edited: Jul 23, 2009
  5. dollarkid

    dollarkid Newbie

    Joined:
    Jan 11, 2007
    Messages:
    20
    Likes Received:
    3
    forum dupe'd my post.. admin plz delete, sry
     
    Last edited: Jul 23, 2009
  6. dollarkid

    dollarkid Newbie

    Joined:
    Jan 11, 2007
    Messages:
    20
    Likes Received:
    3
    forum dupe'd my post.. admin plz delete, sry
     
  7. Piree

    Piree Junior Member

    Joined:
    Mar 7, 2009
    Messages:
    110
    Likes Received:
    27
    1 time is enough
     
  8. nytrolic

    nytrolic Registered Member

    Joined:
    Oct 7, 2008
    Messages:
    86
    Likes Received:
    35
    The forums doing a lot of double/triple post ect recently, happened to me other day, pressed the button once and got three posts.