根据ip判断来源是否为爬虫_socket.gethostbyaddr(ip_client) 可以识别爬虫ip么-CSDN博客

网站介绍:文章浏览阅读643次。Socket.gethostbyname method is deprecated and instead by getnameinfoa = Socket.gethostbyname("66.249.64.119");res = Socket.gethostbyaddr(a[3], a[2]);#=>["crawl-66-249-64-119.googlebot.com", ["11..._socket.gethostbyaddr(ip_client) 可以识别爬虫ip么