how to tell if a web request is coming from google's crawler?

后端 未结 3 549
囚心锁ツ
囚心锁ツ 2020-12-20 21:23

From the HTTP server\'s perspective.

3条回答
  •  青春惊慌失措
    2020-12-20 21:51

    If you're using Apache Webserver, you could have a look at the log file 'log\access.log'.

    Then load google's IPs from http://www.iplists.com/nw/google.txt and check whether one of the IPs is contained in your log.

提交回复
热议问题