First of all, I wish my blog a happy 4th birthday. The article should have been updated long ago because of the personal work of Big Cat and the fact that he has no machine to update, so the article was postponed to today. Thank you for your company over the years.
There was a very large mirror station before. The Internet has almost been copied once, and the long lost Google Brothers can even cross the wall to access it, which shows how strong the replication ability is. Big Cat was once killed because of the mirror station The cat will now release the shielding method.
If you are a virtual host or server administrator . htaccess can use the following methods
In your . htaccess Add the following, such as:
Order Deny,Allow
Deny from 127.0.0.1
To mask multiple IP addresses, add multiple Deny from IP address that will do
If the server does not support . htaccess can use the following methods
1、 If you have a virtual host, you need to contact the host vendor to enable it. Generally, the virtual host is enabled by default . Htaccess's
2、 If you are a server administrator, you can use the following methods:
1. Open httpd.conf
Set Options FollowSymLinks
AllowOverride None
Change to
Options FollowSymLinks
AllowOverride All
2. Remove the following notes
LoadModule rewrite_module modules/mod_rewrite.so
3. Restart the Apache service
With the above methods, how to reject the mirror station and make it invalid? If you happen to use a php website like Big Cat, save the code shared by Big Cat as ip.php and upload it to your server
<? php
echo $_SERVER["REMOTE_ADDR"];
?>
Then replace the domain name with the domain name of the image station, such as www.baidu.com/ip.php, and the IP address of the image station will be displayed on the browser. At this time, just copy the IP and add it to . htaccess to disable the mirror station. Since it is too old, no pictures will be provided for the time being If you don't understand, please leave a message to Big Cat. If necessary, Big Cat will provide remote help to kill the mirror station.
Transferred from @Li Ming's Blog
This article is from Big Cat Huimeng. Please indicate the source and the corresponding link when reprinting.