Answer the question
In order to leave comments, you need to log in
How to implement such a way to protect the layout?
Good day.
After a dishonest client, I asked myself: how to properly protect the layout?
Previously, I just inserted a script into all js files (in case the client just downloads the layout from my server):
n=new Date(),t=new Date(2016,6,2);if(n>t){$('body').html('')}
Answer the question
In order to leave comments, you need to log in
minify not only js, but also css and be sure to html, this will be more difficult to restore, but it’s easy to do, connect the necessary plugins from your assembler and that’s it)) I, for example, use gulp with csso, uglify and htmlmin plugins plus at the display stage you can dilute your code with the left code, plus squeeze it all in one bundle, and let him try to sort it all out later))) it will be more expensive for him ... 100% protection is only when you come with a laptop and show it yourself, otherwise you can only complicate process.
Put the layout in a container where he can't get it.
After he pays for the work - put it on the site / give him an archive with files.
The rights to make-up - belong to you, if you did not draw up a contract for the alienation of rights.
Wait half a year, see that your layout is installed/used and sue.
https://onlinepatent.ru/objects/software
https://www.javascriptobfuscator.com/Javascript-Ob...
https://habrahabr.ru/company/xakep/blog/128741/
obfuscating js
will be harder to find a script
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question