5
I've noticed some sites will prevent users from pasting data - anything from passwords to usernames/emails to everything. Without discussing the practice and rational/reasons for/against it, what is the technical means by which a website prevents me from pasting data into a text entry field?
For example, this site does not allow pasting into the "Retype Email Address" field. How? It's my guess that there are various ways to implement this behavior?
I'm using Firefox 62.0.2 on OS X 10.11.6.
As an aside: It's annoying. I wrote a trivial script in AutoKey (Desktop Automation for Linux, but there are similar utilities for Windows and Mac) that just types the contents of the clipboard. That gets past most, but not all such websites. Random passwords are great for security, but terrible to type. – Joe – 2018-10-09T05:03:58.953