What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to protect a form from copying

    Asked by quore on May 16, 2012 at 09:28 AM

    Hi

    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

     

     

    protect form
  • Profile Image

    Answered by jeanettebmz 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.

    Cheers!

    Jeanette

  • Profile Image

    Answered by quore 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
    JotForm Support

    Answered by liyam 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.

    Thanks.

  • Profile Image

    Answered by quore 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
    JotForm Support

    Answered by liyam 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 by maow001 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
    JotForm Support

    Answered by EltonCris on March 04, 2013 at 10:30 PM

    @maow001

    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: http://www.iwebtool.com/html_encrypter

    Hope this still helps. Thanks!

  • Profile Image

    Answered by Tom Rose  on March 24, 2015 at 03:20 PM

    You can achieve this with some html encryption tool (e.g. http://www.webtoolhub.com/tn561359-html-encrypter.aspx) but one disadvantage is someone else can also decrypt it if the encryption is not done using a strong password.