List some preventive methods for code.
[Client code]
Client code refers to HTML/JavaScript code. To tell the truth, it includes JavaScript encryption. The client has no substantive defense measures and can only comfort itself.
[Prohibit right-click, prohibit source code viewing, and save files as files]
<! -- Prohibit replication -->
<Script language = JavaScript>
Function click (){
Alert ('prohibit your left-click Copy! ')}
Function click1 (){
If (event. Button = 2) {alert ('Do not right click ~! ')}}
Function ctrlkeydown (){
If (event. ctrlkey) {alert ('improper copying will damage your system! ')}}
Document. onkeydown = ctrlkeydown;
Document. onselectstart = click;
Document. onmousedown = click1;
</SCRIPT>
<! -- Prohibit replication -->
[Save the ban as]
Add the following code to the webpage you want to keep confidential:
<NoScript>
<IFRAME src = "*. htm"> </iframe>
</NoScript>
Now, if someone wants to save your webpage, ie will help you tell him that the webpage cannot be saved and the saved file will be deleted.
[Use Microsoft Script encoder]
I have also used this technology in the ASP era, and there are many problems. I often make a mess of my pages for encryption and use it with caution.
[JS encryption]
I can search a lot on the Internet, for example:
JS encryption and decryption Daquan:
Http://blog.csdn.net/aosnowasp/article/details/4305431
Common JS encryption algorithms:
Http://www.blogjava.net/hadeslee/archive/2007/11/16/160544.html
[Server-side code encryption]
Here is an article. Let's take a look at it first:
Reflector Protection Method)
Http://www.cnblogs.com/guodapeng/archive/2008/04/13/1151306.html
[Common code protection tools]
1. dotfuscator community Edition
I have tried it in vs2005. After obfuscation, the DLL is basically used normally, but sometimes errors may occur inexplicably. I don't know whether the method is correct or not.
2. xeoncode
It is said that the obfuscation effect is better than dotfuscator. You can add the spent code or package it into native code, so that the decompilation is impossible.
Xeoncode postbuild can confuse encryption, optimization, and package files.
3. maxtocode
This item is a Chinese product and is not damaged. net metadta.. net il Code cannot be decompiled at all, thus completely protecting your intellectual property rights and labor achievements
.
4. dnguard hvm
It is also developed by Chinese people.
5. intellilock/. Net Reactor
6. salamander of remotesoft
7. smartassembly
Famous red-gate.com development of products, do not know. Net reflector is the company's products, and sell locks, and sell ten thousand with locks, there is enough cheap.