jeudi 22 octobre 2020

How Do Websites Detect Bot-Like Cursor Movement

How the cursor moves on a website can tell a big story. It could be used to determine if someone is a human or not.

Is the mousemove event the only way to track cursor movement?

Something like this:

jQuery(document).ready(function(){

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

Then I could have some algorithm to detect if the mouse is actually being moved. That's it's not moving in a 100% straight line all the time. Is this all I've got to work with?

Is this how Websites like Facebook would do this?

Aucun commentaire:

Enregistrer un commentaire