greener
greener

Reputation: 5069

How to tell if web visitor is a robot

On an ASP website, is there a way to tell whether a visitor is a robot?

I'm thinking there might be a parameter in the ServerVariables collection that could be used, in a similar way to HTTP_X_FORWARDED_FOR and REMOTE_ADDR can be used to get the visitor's IP addresses.

Searches on Google have so far yieled few leads.

Upvotes: 3

Views: 1216

Answers (3)

Ahamx
Ahamx

Reputation: 21

if a visitor access robots.txt it's most likely a spider. IF there is nothing in the host or user-agent information or there is no referring URL or IP address changes within a visit or if the log lines appear together in an uninterrupted block in the log file then it's most likely robot traffic.

thanks

Upvotes: 1

Pricey
Pricey

Reputation: 5929

My suggestion would be to try

HTTP_USER_AGENT

Upvotes: 1

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114377

There is no bullet-proof method because headers and origins can be spoofed.

Upvotes: 3

Related Questions