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).
发布评论
评论(1)
不,这是不可能的。有人总是可以关闭 JavaScript、修改它、运行自己的 JS 代码等等。出于安全原因,永远不应该使用 JavaScript。
但是,对于 AJAX 请求,您可以在服务器端实现最小间隔(如 Stack Overflow)。
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).