Do websites need to be protected? The promotion is too late. How can we reject customers. However, the website must be protected. Otherwise ......
1. Anti-Web Framework
In the past few years, none of the hooligans were in charge, or none of the hooligans in the background were in charge. As a result, various hooligans blossom everywhere. By using the name of the online pick-up, the traffic is well-known, so you are framed.
Anti-Web framework Countermeasures
This year, the law does not protect you, but you can only protect yourself. Write the following code on the webpage to prevent being framed
<Script type = "text/javascript"> if (top. location! = Self. location) </script>
2. Anti-Domain Binding
Chinese people see. com as the genuine domain name. In most cases, the same domain name. com is under registration, and. net. org and other domain names are safe and sound. Don't think you are cheap. When you develop with xxx.net, other people will use xxx.com to resolve your website. If you are not familiar with or even proud of it, you should pay the tuition fee, when people are familiar with xxx.com access, they will sell the domain name to you at a high price. If you don't buy it, wait for the traffic to be hijacked.
Defense Against domain name binding
The webpage can determine the SERVER_NAME variable of the server. If the server does not contain its own domain name, the webpage jumps. The Server ASP code replaces www.webjx.com with its own URL
Dim strServer_Name
StrServer_Name = LCase (Trim (Request. ServerVariables ("SERVER_NAME ")))
If strServer_Name <> "www.webjx.com" Then
Response. Redirect "http://www.webjx.com"
End If
The webpage client replaces www.webjx.com with its own website address.
<Script type = "text/javascript">
Varmy_domain = "http://www.webjx.com ";
Var page_url = window. location. href;
If (page_url.indexOf (my_domain! =-1 ){
Top. location = my_domain;
}
</Script>
3. Anti-domain hijacking
Domain Name Hijacking can be divided into two situations: one is to send false DNS information on the gateway, which is valid for domestic and international domain names and cannot be solved in general, visitors can only remember their server IP addresses or prepare several domain names for backup. This situation can only affect some users.
The second is to directly modify DNS information. If the time is long, global users can be affected. At present, the. cn Domain Name is more likely to be modified. For example, the domain name of Google and MSN. cn was hijacked a few days ago. And a few years ago, Tencent illegally snatched the QQ.com.cn domain name.
Defense Against domain hijacking
Try to register. com. net and other international domain names. Besides, the. cn Domain Name is not open to individuals (that is, personal registration is not legally guaranteed .)
4. Anti-Piracy
Piracy infringement is actually a big problem, but it is not a big problem in China. Basically, image leeching affects servers. Do you want to be bigger or stronger?
I don't know if they don't do anything when sending fake money to these infringers. I don't think the difference is big.
Anti-Piracy and infringement measures
The following is only a simple protection method. To solve this problem, you must wait for a decent copyright law to be published. There are also countries with the same determination as blocking some websites.
Use images in the document and add your own Website logo and domain name as watermarks.
The article contains complex HTML tags and various links to reduce readability after simple replication.
Use your own website for example in the article.
5. Prevents website replication and collection
There are a variety of online advertising platforms, and many people have adopted this simple website creation method to copy all other websites.
Protection against website replication and collection policies
Generally, the IP address of the server that steals website information is relatively fixed. If you know the IP address, you can use it as needed. For example, each webpage accessed by its IP address contains an n mb image. Or simply block the IP address.