D
D
Denis Bukreev2016-07-01 19:45:46
Malware
Denis Bukreev, 2016-07-01 19:45:46

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('')}

In a compressed file, it is difficult to find.
Naturally, an unknowing person cannot find the cause of the breakdown.
But if he is familiar with js and how to debug it, it is easy to find and neutralize it.
Now the idea has arisen to supply the files with some kind of virus that will run by date and do bad things.
But I don't understand this at all.
Is the idea feasible? And is it adequate at all?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexey Ukolov, 2016-07-01
@alexey-m-ukolov

Impossible, inadequate.

M
Mikhail Abroskin, 2016-07-01
@miker059

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.

A
Anton Ulanov, 2016-07-01
@antonsr98

deliberate spread of viruses is punishable

X
xmoonlight, 2016-07-01
@xmoonlight

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

A
Alex Glebov, 2016-07-01
@SkiperX

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 question

Ask a Question

731 491 924 answers to any question