如何阻止所有 Selenium 机器人?我想阻止所有 Selenium 项目。
说明:
我有一个非常大的网站,用于流媒体动漫等。每月至少有 3000 万点击访客和成员(member)。
一些网站从我们的网站抓取视频链接。与 Selenium 机器人一起使用
之前我们确实检查和阻止,用户代理,速率限制, session id检查许多机器人被阻止,但现在仍然有人抓取,更改代理IP, session id再次发送抓取请求。所以他/她绕过了我们的速率限制等跟踪器。
如何阻止所有 Selenium 机器人?我想阻止所有 Selenium 项目。
最佳答案
您将无法阻止 Selenium完全可以阻止机器人,因为有特定措施可以绕过几乎所有机器人检测机制。几个例子:
navigator.webdriver
flag can be modified to prevent Selenium detection .- user-agent Google Chrome used by Selenium can be changed for each execution .
- google-chrome 的用户代理used by Selenium can be changed amid execution .
- 使用 rotating proxies to avoid detection .
- 检测机器人 cloudflare can also be bypassed .
- 检测到google-chrome-headless作者:Cloudflare can also be bypassed .
错误 1015:您受到 Cloudflare 的速率限制
can also be bypassed .
tl;博士
Can a website detect when you are using Selenium with chromedriver?
关于selenium - 如何阻止所有 Selenium 机器人?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65646687/