网站如何检测类似机器人的光标移动

How Do Websites Detect Bot-Like Cursor Movement

光标在网站上的移动方式可以讲述一个大故事。它可以用来判断一个人是不是人。

mousemove 事件是跟踪光标移动的唯一方法吗?

像这样:

jQuery(document).ready(function(){

   $(document).mousemove(function(e){
      $('#status').html(e.pageX +', '+ e.pageY);
   }); 
})

然后我可以用一些算法来检测鼠标是否真的被移动了。那就是它并不是一直在 100% 直线上移动。这就是我要做的全部工作吗?

像 Facebook 这样的网站会这样做吗?

我喜欢你关于检测鼠标移动的想法!这也是我见过的第一个 post(带有 selenium 标签)谈论检测硒而不是绕过检测。

我认为机器人检测的现实并不那么令人兴奋。

- 一种巧妙的检测方法是通过识别 selenium/chromedriver.

使用的全局 javascript 变量来完成

那个 post 还讨论了如何使用 hex-editor 修改您的 chromedriver 以更新您的变量名称以避免检测 - 有很多混合反应。

还有companies out there which sell bot-protection-systems. And even a forrester report which outlines many companies in this market. There is even an open source版本。如果您需要机器人保护,您可以调查其中一些公司 ideas/approaches。