Forum Moderators: coopster & phranque

Message Too Old, No Replies

Looking for code to test if bot.

         

OldPete

1:11 am on Nov 11, 2005 (gmt 0)

10+ Year Member



I understand that this should be easy to do, I've googled it, etc... but nothing.

I'm looking for a steer in the right direction on some code. I have a url that is generated via perl and I need to code to look one way if a regular user, and another way if it is a bot. (session_id if not bot, etc.)...

Doable?

Thanks,

Pete

jatar_k

4:27 pm on Nov 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld OldPete,

you could test against ip or user agent would be the first 2 things off the top of my head

OldPete

4:38 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



Ahhh... ok, that's a good hint. :)

I'll google "test user agent perl"...

Any other hints?

Thanks! :) Pete

OldPete

4:55 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



I think I'm on to it now!

:)

[webmasterworld.com...]

Just tell me I'm heading down the right path. :)

Pete

jatar_k

4:59 pm on Nov 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



yep, that would work

OldPete

5:11 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



I love it when a plan comes together! :)

(Too much A-Team as a youth!) ;)

Pete

P.S. THANKS!