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.

有帮助吗?

解决方案 2

My suggestion would be to try

HTTP_USER_AGENT

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top