I have some geo targeting code whcih I want to behave in a particular way if the site is being spidered by a robot e.g. google etc.
Is there any way to infer this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Presenting different content to search engine crawlers and human visitors – called cloaking – is a risky thing, and can be punished by the search engine if detected.
That said, check out this SO answer with several links to well-maintained “bot lists”. You would have to parse the USER_AGENT string and compare it against such a bot list.