Libertarian Prepper

The world divides politically into those who want people to be controlled, and those who have no such desire.


How to bypass a website’s copy-paste restriction

The Problem

Many websites have taken to restricting the user’s ability to copy-paste. Most of the time the restriction is limited to a secondary password field, which makes sense because they want to make sure you typed your password correctly. If you made a typo when picking a password, and then just copy-paste that same erroneous password into the verification field, you could end up unable to login to your account. The same trick is usually used to stop people from skipping re-entering their e-mail.

But where it gets really annoying is when there’s a lot to type up. I’ve seen websites that have a blanket prohibition in place on most of their fields. So if you’ve spent ages typing something up, did a ctrl-a and ctrl-c to copy your work prior to submission, and then your browser crashed or your session timed out and you find yourself with a copied wall of text and no way to paste it into the field, there’s an easy solution.

The Solution

Step 1: First, get yourself Google’s Chrome browser. I’m not sure whether this’ll work with other browsers.

Step 2: Select the field that’s causing you trouble and right click it. Then choose “inspect element” from the bottom of the contextual menu.

Step 3: There’s likely a section in the highlighted line of code that says onpaste=”return false;” or something along those lines.

Step 4: Double click on the part that says return false and change it to return true. Now simply close the code editor, and proceed to paste your previously copied text!

  • andy

    works like a dream, thanks

  • E.G.

    What if the site won’t even let you select it. Any work around on that? Thanks

  • Ag Shaidun

    If there’s a site that won’t even let you select it, just press F12 to open Inspect Element .
    (Google Chrome)

  • domi

    it also works on Firefox, thanks!

  • Trice

    this doesn’t work

  • McCringe

    Can’t find it

  • That didn’t work 🙁

    • JC

      yes, it does.
      1- view page source
      2- Select the field that’s causing you trouble and right click it. Then choose “inspect element” from the bottom of the contextual menu

  • Jon Borknøyfjord

    Or you could just add value=”<paste here>”

  • ssbtech

    Doesn’t seem to work. I can update the placeholder text in real time, but changing the return false to return true (or even deleting that attribute) doesn’t restore the paste functionality.

  • bobb

    go to inspect element then click edit as html then in the text box you can select and copy

  • vijay parihar

    this work thanks ..