![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2012
Posts: 929
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Let's do some business!
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,307
|
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.
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted Windows VPS now available - 1st month free for GFY members - Great for TSS, Nifty Stats, remote work, virtual assistants, etc. DM to get set up. Wanted: CCBill pay sites for sale |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Aug 2012
Posts: 929
|
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? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Let's do some business!
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,307
|
This is done in real time. There's no submission. It will not let the user issue the Paste command.
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted Windows VPS now available - 1st month free for GFY members - Great for TSS, Nifty Stats, remote work, virtual assistants, etc. DM to get set up. Wanted: CCBill pay sites for sale |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
I think it still works if you turn off JS, though
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,058
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Aug 2012
Posts: 929
|
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????? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Join Date: Jun 2006
Posts: 19,098
|
Quote:
https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event Did you never use events before? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
GFY'S #1 retard
Industry Role:
Join Date: Feb 2003
Location: Kelowna
Posts: 10,826
|
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?
__________________
I make my money from people jerking off |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |||
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,091
|
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:
|
|||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
iver seen some news sites if you copy and paste, it will paste the selection plus add their website in another line
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Too lazy to set a custom title
Join Date: Jun 2006
Posts: 19,098
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,969
|
Quote:
Try this: Code:
// Get input element var input = document.getElementById('myInput'); // Listen for keydown input.addEventListener('keydown', function(event) { console.log('User is typing'); }); // Listen for copy-paste input.addEventListener('paste', function(event) { console.log('User pasted some text'); });
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
Important to note that not all browsers support these events, so this is just one part of detecting (probable) copy-paste.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
https://developer.mozilla.org/en-US/...nt/paste_event And chrome is only browser which actually matter. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |