I would like to automatically detect Google and other crawlers and write them to my ASP.NET site. Has anyone found a reliable way to do this? Part of the entrance is easy, but reliably detecting them is a real problem.
Sincerely.
Take a look at user-agent. It must be googlebot. A more reliable way is to reverse lookup IP addresses. It will tell you whether it is a Google bot or not. I would use both methods. BUT NOTE: you will slow down your site as you will do a reverse search for each visitor.
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=80553
, - , Google , , , - , -.
-, User Agent. , IP-, , Google IP-, .
DNS- , googlebot.com, Googlebot, , .
googlebot.com
. . , , Googlebot IP-. , .
Google , , noarchive. , .
. - Google.
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156412
Source: https://habr.com/ru/post/1717879/More articles:preg_replace - NULL result? - phpРезультаты заказа SQL по количеству совпадающих полей - sqlHierarchy Problem -> Replace Recursion with Linq Join? - c #Javascript regex to match a six digit number - javascriptGetting values from two different tables using Django QuerySet - pythonError redirecting page - redirectИспользование другого названия компании для распространения приложений iPhone? - iphoneC # syntax shortcuts - syntaxGetting started with Tornado - pythonGet a list of directories on a shared .NET computer. - c #All Articles