Prevent HTML theft

I am showing a demo PSD for HTML to my client. I want to upload an HTML document with CSS files and images on my server to show a demo to the client.

I am afraid that it will copy HTML code.

Is there a way to decode / encode html code so that it is impossible to understand?

Even if I don't allow a right-click on the page, it can use the View> Page Source option or it can save the web page and then see the source code.

+4
source share
2 answers

You cannot protect your JS, CSS, or HTML code 100%.

But you can confuse your client by encrypting the code, removing spaces, etc. He could copy and paste it, but could not easily edit or expand it.

This tool encrypts HTML for JS: http://www.iwebtool.com/html_encrypter

CSS compressor (removes spaces and newlines): https://csscompressor.net/

JavaScript compressor (removes spaces and newlines): http://javascriptcompressor.com/

As @AMR already mentioned: protect your copyrights and establish a contract. My advice is just in case there is no trust in your client!

+3
source

There is no way to stop him. You can do what Mr. Bombastik said, but I would just suggest writing a short non-disclosure form and signing it with a person. You can also simply post comments on your page that show it. After all, if they steal him and his code, it is quite easy to prove it even without comment. Civil suits are not so many.

+2
source

Source: https://habr.com/ru/post/1480331/


All Articles