PHP script to redirect adwords bot to different page?

PepsiGuy

BANNED
Joined
Apr 25, 2009
Messages
141
Reaction score
275
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.
 
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("Location: http://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
 
Last edited:
The forums doing a lot of double/triple post ect recently, happened to me other day, pressed the button once and got three posts.
 
Back
Top