Anti-cheat is tricky, especially on the Web. Because of privacy/security concerns, websites are severely limited on what information they can know about a user’s computer, and there is no way to know for sure if the computer is being remotely controlled. Even if you find a reliable way to detect that using the limited set of tools available to JS, it’s often trivial to bypass those checks, either by modifying the scripts or the browser itself.
Of course, this is also a problem on native applications, but to a lesser extent.
1
solved Is it possible to check through a browsers (javascript) if a user being controlled by a rtp