Absrtact: The previous period of time space was once closed, resulting in Baidu and Google on the site of the collection and ranking directly into 0, all this is the space flow exceeded the curse. Originally one months have 15G traffic for a small blog should be enough, but why
A period of time before the space was closed, resulting in Baidu and Google on the site of the collection and ranking directly into 0, all of this is the space flow exceeded the trouble. Originally one months have 15G of traffic for a small blog should be enough, but why exceed the standard?
The previous 9G per month of space traffic is almost enough, but last month this blog traffic from 500ip to 2000IP, I think it may be the reason for the increase in space traffic consumption caused by the explosion. But today special to see the Web server access logs and space traffic records, found that access to the site to restore the first genius 44ip of traffic, but the space traffic consumption unexpectedly reached 1.59G, really let me scare the urine. So careful analysis of the flow consumption records, in addition to search spiders access, can show access to visitors from the source, consumption up to 1.4G unexpectedly is showing the untraceable translation address of the "other" access, in the form of PNG files.
Finally found the space flow to waste the culprit, so the right remedy, solve off. Many Bo friends in order to facilitate are directly to the picture in their own blog space inside, this looks convenient for themselves, but also convenient for visitors, you can improve the speed of visitors to open the page. But when there are more pictures, the problem arises. At home, the original is never valuable, plagiarism, the cottage is everywhere, the picture is the same. A lot of people copy your article even your picture also copied past, this side is the picture hotlinking. Take my blog For example, a lot of people think my blog style is good, directly copy the past, and even more, directly reproduced my blog article, my blog pictures also directly copied past. It doesn't matter if you're young, but once you get more pictures, you'll find your traffic is starting to soar.
So how do we prevent picture hotlinking?
In fact, for WordPress, because we are generally using Linux host, then we just modify the root directory of the htaccess file on the line, but sometimes modify the root directory htaccess file may be effective wood, This time we can further modify the image file upload file to add a htaccess file to implement, the specific methods are as follows:
(1) First of all, we have to prepare a chain of anti-theft pictures, we would like to name the picture Image.gif bar, the picture of the content of how you do, but the picture must be small, a few K or more than 10 k or so the best.
(2) Upload the image to the root of your blog.
(3) This step is the key, placing a. htaccess file in the/wp-content/uploads/folder where the picture is placed, and adding the following in the. htaccess file:
Rewriteengine on
Rewritecond%{http_referer}!^$ [NC]
Rewritecond%{http_referer}!^http://(www.)? Pzboy.com (/)? *$ [NC]
Rewritecond%{http_referer}!zhuaxia.com [NC]
Rewritecond%{http_referer}!google.com [NC]
Rewritecond%{http_referer}!sousou.com [NC]
Rewritecond%{http_referer}!baidu.com [NC]
Rewritecond%{http_referer}!xianguo.com [NC]
Rewriterule. (jpg|gif|png|bmp|jpeg|swf) $/image.gif [r,nc,l]
These statements allow only their own blog www.***.com, as well as search engines and subscription-sharing sites to display the original image, others show just what the image.gif. You can also add some exceptions to the site, but in accordance with Rewritecond%{http_referer}!www.***.com [NC] format, the www.****.com to the site you want to make exceptions to the URL.