开发者

Is it possible to block end users from using Javascript to trigger events? [closed]

开发者 https://www.devze.com 2023-03-18 08:15 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it foc开发者_高级运维uses on one problem only by
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it foc开发者_高级运维uses on one problem only by editing this post.

Closed 3 years ago.

Improve this question

As an example, let's assume I want to prevent users from using auto-clickers. Is it possible, and are there accepted best practices when doing this?


Nope, it is not possible. Someone can always turn off JavaScript, modify it, run their own JS-code, etc, etc. JavaScript should never ever be used for security reasons.

However, for AJAX-requests you could implement a minimum interval server-side (like on Stack Overflow).

0

精彩评论

暂无评论...
验证码 换一张
取 消