Can Scripts Detect COPY and PASTE actions?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakerslive
    Confirmed User
    • Aug 2012
    • 929

    #1

    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
  • Sly
    Let's do some business!
    • Sep 2004
    • 31376

    #2
    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
    Great for TSS, Nifty Stats, remote work, virtual assistants, etc.
    Click here for more details.

    Comment

    • lakerslive
      Confirmed User
      • Aug 2012
      • 929

      #3
      Originally posted by Sly
      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.
      besides the confirmation part.

      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?

      Comment

      • Sly
        Let's do some business!
        • Sep 2004
        • 31376

        #4
        Originally posted by lakerslive
        besides the confirmation part.

        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?
        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
        Great for TSS, Nifty Stats, remote work, virtual assistants, etc.
        Click here for more details.

        Comment

        • Colmike9
          (>^_^)b
          • Dec 2011
          • 7230

          #5
          I think it still works if you turn off JS, though
          Join the BEST cam affiliate program on the internet!
          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..

          Comment

          • fuzebox
            making it rain
            • Oct 2003
            • 22351

            #6
            https://www.w3schools.com/jsref/event_onpaste.asp

            https://developer.mozilla.org/en-US/...nt/paste_event

            Comment

            • lakerslive
              Confirmed User
              • Aug 2012
              • 929

              #7
              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?????

              Comment

              • pornmasta
                Too lazy to set a custom title
                • Jun 2006
                • 20016

                #8
                Originally posted by lakerslive
                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?????
                Why don't you find this yourself:
                https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event

                Did you never use events before?

                Comment

                • Huggles
                  GFY'S #1 retard
                  • Feb 2003
                  • 12507

                  #9
                  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?
                  https://3-veo.com/
                  The best AI video maker portal.

                  Comment

                  • sarettah
                    see you later, I'm gone
                    • Oct 2002
                    • 14294

                    #10
                    Originally posted by lakerslive
                    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?????

                    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.

                    Can Scripts Detect COPY and PASTE actions?

                    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.

                    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
                    All cookies cleared!

                    Comment

                    • fris
                      Too lazy to set a custom title
                      • Aug 2002
                      • 55679

                      #11
                      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.

                      Comment

                      • rowan
                        Too lazy to set a custom title
                        • Mar 2002
                        • 17393

                        #12
                        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.

                        Comment

                        • pornmasta
                          Too lazy to set a custom title
                          • Jun 2006
                          • 20016

                          #13
                          Originally posted by rowan
                          and zero uses of the backspace key.
                          🤣 omg ....

                          Comment

                          • 2MuchMark
                            Mark of 2Much.net
                            • Aug 2004
                            • 50971

                            #14
                            Originally posted by lakerslive
                            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
                            Of course! You can use JavaScript to list to specific events that are triggered during user interaction with input fields. You can listento Keydown/Kepress events, and you can listen for paste events.

                            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');
                            });

                            Comment

                            • rowan
                              Too lazy to set a custom title
                              • Mar 2002
                              • 17393

                              #15
                              Originally posted by 2MuchMark
                              Of course! You can use JavaScript to list to specific events that are triggered during user interaction with input fields. You can listento Keydown/Kepress events, and you can listen for paste events.
                              Important to note that not all browsers support these events, so this is just one part of detecting (probable) copy-paste.

                              Comment

                              • Klen
                                • Aug 2006
                                • 32235

                                #16
                                Originally posted by rowan
                                Important to note that not all browsers support these events, so this is just one part of detecting (probable) copy-paste.
                                Looks like coverage is good:
                                https://developer.mozilla.org/en-US/...nt/paste_event

                                And chrome is only browser which actually matter.

                                Comment

                                • rowan
                                  Too lazy to set a custom title
                                  • Mar 2002
                                  • 17393

                                  #17
                                  Originally posted by Klen
                                  Looks like coverage is good:
                                  https://developer.mozilla.org/en-US/...nt/paste_event

                                  And chrome is only browser which actually matter.
                                  If you're trying to prevent fraud, the last statement isn't really helpful. Also, there may be privacy plugins which disable these events. I have seen numerous copy and paste entries to my site which do NOT fire the event.

                                  Comment

                                  Working...