Home we install a component: Isapi.msi
After installation, to the Software installation directory of the IIS_WGP group read and Write permissions (important, if not set up after the installation of your site will be directly service unavailable, unable to access).
If your installation directory is D:program filesheliconisapi_rewrite (the default installation directory is program Filesheliconisapi_rewrite, we can build it first), right click Isapi_rewrite, Select the "Properties"-> "Security"-> "Add"-> "advanced"-> "Find Now" to find a IIS_WGP, double-click Add, OK. Then select the Group and click "Full Control" to have read and write access.
OK, now to install the software (the software will restart IIS during the installation), install directory Select the directory that has the right permissions in the previous step, open the Internet Information Service in the Control Panel after the installation, and open the Properties dialog box of the Web site with an "ISAPI filter", click "Add", "Filter Name" Casually fill out a good understanding of the name can be, "executable" Item click "Browse", select the installation of the Isapi_rewrite installed in the directory of the Isapi_rewrite.dll, (as pictured), OK. Restart IIS.
Modify the Httpd.ini file in the installation directory (if the file is read-only, remove "read Only" and then modify it), as described above for the virtual host Httpd.ini file that configures the Windows system.
The method of the IIS server Anti-Theft chain is to add the following statement to the Httpd.ini
The code is as follows |
Copy Code |
Rewritecond Host: (. +) Rewritecond Referer: (?!) http://1.*). * Rewriterule. *. (?: gif|jpg|png|exe|rar|zip)/block.gif [I,o] |
Then restart IIS, then the anti-theft chain began to work, the other Web site hotlinking request will be rejected.
If you want to the individual site does not alarm chain words or your forum is divided into two domain names. The above method will lead to mutual anti-theft chain! Do not call normal please click the following method to change, specific code:
The code is as follows |
Copy Code |
Rewritecond Host: (. +) Rewritecond Referer: (?!) http://(?: www.zhanhelp.com|www.Discuz.net)). + Rewriterule. *. (?: gif|jpg|png|exe|rar|zip)/block.gif [I,o] |
Face this code means that except
Http://www.111cn.net and www.111cn.net two sites
Hotlinking all on other websites!
So far the security chain configuration has been adjusted, and then in the site root directory to establish block.gif files, Hotlinking's website shows that this picture, and finally can get rid of the hotlinking of the trouble
Take www.111cn.net as an example, please make the corresponding modification according to the actual situation, inside the baidu.com and google.com is in order not to prevent seo/seo.html "target=" _blank "> Search engine Spiders crawl pictures, Between station and station with "|" Separated, one stood two parts "baidu.com| (. *). Baidu.com ", added when this is added. The last line of code is an anti-theft chain extension, add their own changes;/nopic.gif is when others hotlinking display this picture, stored in the site root directory. From then on your website has the picture anti-theft chain function.