Detect synthetic clicks on a webpage

前端 未结 6 1462
谎友^
谎友^ 2021-01-15 19:51

Through Javascript is it possible to detect synthetic clicks (the clicks that were not generated by human but instead was generated using JS or some other automation tool) ?

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 20:23

    You'd probably want to watch for mousemove events and click events. If you're catching click events, but there are no mousemove events, I'd think it's safe to say that robots are clicking on your site.

提交回复
热议问题