Discuz Forum uses rewrite component to realize anti-theft chain
Source: Internet
Author: User
KeywordsBurglar chain nbsp; hotlinking
&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Picture Burglar chain (also includes other types of files such as audio, video and so on) the goal of the mechanism is to protect their own server resources, especially the network bandwidth is not illegal abuse, reasonable anti-theft chain mechanism can make the site effectively away from the illegal web site intrusion, so that the Web site resources to maximize their access to the User Service, Instead of unknowingly making contributions to other sites. At the same time, it must be noted that any anti-theft chain mechanism is not fully "reliable", in fact, most of the site's anti-theft chain settings are to protect themselves from the hotlinking site and to ensure the availability of the site to find an acceptable balance between the availability of the site itself should obviously be placed in the first place, a joke said, The most effective anti-theft chain mechanism, I am afraid to reject all HTTP requests, so that no matter what other sites use the means, you can not use your pictures and bandwidth, but this will make your site is not available.
On the other hand, anti-theft chain technology itself, is never and can not be the site to protect their own copyright means. Simply put, as long as the Web page is published to the public, as long as the Web page can be "seen", no matter what kind of "protection" mechanism, the plagiarism will always have a way to put your content including the various elements of the Web page for the existing, especially in a state of legal loss of moral chaos, "smart man" has always been emerging, Every means is always endless. And we have the RSS feed in the Full-text output to do that, is because: 1, show us to catch shrimp processing Feed way "Do not agree not to cooperate" position; 2, check our own feed in the catch shrimp in the display, you can see the picture anti-theft chain mechanism can work, The entire page is fragmented by a patch of plaster that affects the user's reading experience to a large extent, and draws potential subscribers to try not to subscribe to our feeds if possible.
First of all, I want to say is "hotlinking" very common phenomenon, although not collected so "popular", but for the stolen people, encounter this matter is really timely solution, or the consumption of resources will likely affect the normal operation of their own website. Then what is hotlinking, how to prevent the site's information is hotlinking? The following simple:
The definition of "hotlinking" is that this content is not on its own server, but by technical means, bypassing the final page where others have an interest in advertising, and providing this content directly to the end user on their own advertising-interested pages.
General hotlinking is divided into file hotlinking and picture hotlinking Two kinds of, what download station, picture station, here have to say is some few people take hundreds of m of virtual space to do download, picture station; So the general hotlinking just happened. The author is the ideal source of the webmaster, the day before that du meter real-time download traffic increased several times, and IP and PV did not see significant changes, lasted a day or so, I took a simple anti-theft chain, the results of a few minutes after the return to normal. I used the method is the use of rewrite components, with Discuz forum and static page of friends know, the following text mixed row of the way simply, because there is no technical content, we can shoot bricks.
1, download rewrite compression package, decompression installation, playing forum installed can be removed from this step. Need to be able to window me.
2, open the installation directory of the Httpd.ini file, in the final add the following statement
The general meaning is, if the request does not come from this station then refuses the request, turns to display the anti-theft chain website root directory The Block.gif picture, the picture suits the picture station, for the download station is the best course is jumps the page. The third line of code is the allowed Web site.
3. Add ISAPI filter, as shown below
Finally restart your site, a simple anti-theft chain system is completed.
qq:5503525 QQ Exchange Group: 353263
This article from: www.yuanma.cc reproduced please keep the source, thank you!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.