Question

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.

Thanks for your help.

Était-ce utile?

La solution 2

My suggestion would be to try

HTTP_USER_AGENT

Autres conseils

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

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top