How to protect a form from copying

  • Profile Image
    Asked on May 16, 2012 at 09:28 AM


    i have made a form and i copied the script into my website - everything looks fine.


    If a visitor  selects "view source" on a browser he can copy the script and paste the form into another site. 


    Is there a way to lock my form and prevent that?

    this is very important because i dont want my forms to be copied anywhere.


    Thank you



  • Profile Image
    Answered on May 16, 2012 at 02:02 PM

    You can find a workaround to protect your content by adding  the following html code to your BODY tag:

    <body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">

    Below you have another tricky code which will protect your whole page by preventing visitors right clicking on images or content

    <script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>

    Remember this only stops some visitors from viewing your source. There are ways around it and if someone really wants to view your source they may find a way.

    A more sophisticated way would involved some code using web programming language such as PHP, ASP, and so on

    Hope this helps, feel free to contact us if you need further assistance.



  • Profile Image
    Answered on May 17, 2012 at 04:21 AM

    Hi Jeanette

    isn't there any option inside the jotform settings to prevent copying? 

    It could be useful if there was an option to relate a form to a specific URL and only submissions from that specific url to be valid.

    Thank you


  • Profile Image
    Answered on May 17, 2012 at 04:54 AM

    Hello quore. Unfortunately, there is no such option available in jotform.

    Let me suggest this feature to the development team.  But I cannot assure you that this feature can be implemented anytime soon as our developers are pretty busy working on developments that are already in the pipeline.

    But as soon as we have this feature implemented, rest assured we'll sure to let you know.


  • Profile Image
    Answered on May 17, 2012 at 05:34 AM

    Thank you for making this suggestion.

    I think that is a feature that many of jotform users will need.

    Its really important that all the submissions come from a specific url that I can manage and not anyone with a simple copy / paste of a single line of code can copy my form anywhere he wants.

    Thanks again


  • Profile Image
    Answered on May 17, 2012 at 05:40 AM

    You also might want to look into this user guide on how to know which site a submission is coming from.

  • Profile Image
    Answered on March 04, 2013 at 03:12 PM

    Hi, is there any option in order to hide or protect the source code in my forms ?

  • Profile Image
    Answered on March 04, 2013 at 10:30 PM


    I think the best way to achieve that for now is to get your form's full source code and encrypt it so the codes will be hidden and can't be copied by anyone? Here's a good html encrypter:

    Hope this still helps. Thanks!

  • Profile Image
    Tom Rose 
    Answered on March 24, 2015 at 03:20 PM

    You can achieve this with some html encryption tool (e.g. but one disadvantage is someone else can also decrypt it if the encryption is not done using a strong password.