Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET counting visitors, not bots

Tags:

asp.net

I have got an ASP.Net 4 web site. I'm counting visitors at background but my code counts search engine's bots too. How can I understand my client is a bot or human? I don't want to count bots.

Regards

like image 427
user348357 Avatar asked Aug 13 '10 20:08

user348357


1 Answers

You can use the Crawler property of Request.Browser to filter search engine bots.

like image 160
Atanas Korchev Avatar answered Nov 28 '22 04:11

Atanas Korchev