![]() |
Can Scripts Detect COPY and PASTE actions?
To any devs here, can AI or scripts detect if a paragraph entry into a form/field
was done via TYPING or COPY and PASTE method? ty |
Many banks do this on their various forms. Example: when adding a new account to send money to, banks will request that you add the account number twice, but the second field is often blocked from pasting.
|
Quote:
Lets say its just a simple field, can you put an algo that can DETECT for copy and paste content? I suppose the WPM would be like really high? |
Quote:
|
I think it still works if you turn off JS, though
|
|
No you don't get it..
Example As I am typing this message to reply to your message, can a script be made to DETECT if its a TYPED message or a COPIED and PASTED message????? |
Quote:
https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event Did you never use events before? |
Maybe a real webmaster and not a brokie like me can correct this, but if you run .js files, can't those .js files basically detect nearly anything the mouse and user is up to?
|
Quote:
That might be because your title asks one thing and your post asks another. Your title asks if the actions of copy and paste can be detected and the answer to that is yes, they are events that can be captured. Quote:
Your post on the other hand asks something quite different and that is whether a script can detect whether something has been copied and pasted into a field and that answer would be no. Once the data is in the field it would appear no different to the script whether it was typed or copy pasta. Quote:
|
iver seen some news sites if you copy and paste, it will paste the selection plus add their website in another line
|
AI may be able to detect typing pattern anomalies, but a simple calculation of average time between characters would probably catch most. You don't need AI for everything!
One of my sites flags potential fraud by detecting copy/paste (via javascript), unusually low intervals between each keypress, and zero uses of the backspace key. |
Quote:
|
Quote:
Try this: Code:
|
Quote:
|
Quote:
https://developer.mozilla.org/en-US/...nt/paste_event And chrome is only browser which actually matter. |
Quote:
|
All times are GMT -7. The time now is 02:09 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123