着两个月爆了两次流量,第一次是有关性浪和谐“大江东去”的啊,那篇鸟文章每日500IP 我的背景图又有1M,而且放在主机上,于是淡定的7天爆掉6G。而且遭遇关键词。
于是,我学乖了,删掉了那篇鸟文,把主题图片外链。
这个月又爆一次,悲剧的不明真想,于是排除所有可能

禁止了爬虫重复乱爬,谢了robot;

User-agent: *
Disallow: /*?replytocom=
Sitemap: http://lee.moe/sitemap.xml.gz

开启了图片防盗链

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !www.lee.moe [NC]
RewriteCond %{HTTP_REFERER} !lee.moe [NC]
RewriteCond %{HTTP_REFERER} !lee.moe [NC]
RewriteCond %{HTTP_REFERER} !www.lee.moe [NC]
RewriteCond %{HTTP_REFERER} !zhuaxia.com [NC]
RewriteCond %{HTTP_REFERER} !xianguo.com [NC]
RewriteCond %{HTTP_REFERER} !google.com [NC]
RewriteCond %{HTTP_REFERER} !bloglines.com [NC]
RewriteCond %{HTTP_REFERER} !feedburner.com [NC]
RewriteCond %{HTTP_REFERER} !feedsky.com [NC]
RewriteRule .*\.(gif|jpg|png|)$ http://img1.dnschina.net/files/49/不告诉你流量有限自己改.jpg [R,NC,L]
<FilesMatch ".(.*.js$|.*.css$|.*.flv$|.*.gif$|.*.jpg$|.*.jpeg$|.*.png$|.*.ico$)$">
Header set Cache-Control "max-age=25920000"
</FilesMatch>

解释一下RewriteCond %{HTTP_REFERER} !www.lee.moe [NC]这个!后面的网站是允许的列表,就是除了列表中的网址可以用你的图片外其他的都会被http://img1.dnschina.net/files/49/XXXXXXX.jpg这张图片代替

所以按照你自己喜欢的方式修改

今天一看,流量果然正常了

2011 08 18 178.5 MB 34.2 KB 0.00 KB 0.805 MB 0.00 KB 179.3 MB 22 (22)
2011 08 17 480.3 MB 27.8 KB 25.2 KB 0.694 MB 0.00 KB 481.0 MB 19 (19)
2011 08 16 530.8 MB 29.6 KB 0.00 KB 1.36 MB 0.00 KB 532.2 MB 20 (20)
2011 08 15 553.9 MB 43.7 KB 0.00 KB 0.00 KB 0.00 KB 553.9 MB 29 (29)
2011 08 14 579.7 MB 64.0 KB 217 KB 0.00 KB 0.00 KB 579.9 MB 44 (44)
2011 08 13 573.5 MB 17.0 KB 1.11 MB 0.00 KB 0.00 KB 574.6 MB 12 (12)
2011 08 12 330.1 MB 1.63 MB 15.3 KB 0.00 KB 0.00 KB 331.8 MB 49 (49)
2011 08 11 191.2 MB 54.0 KB 293 KB 0.843 MB 0.00 KB 192.4 MB 37 (37)
2011 08 10 212.9 MB 23.3 KB 199 KB 0.00 KB 0.00 KB 213.1 MB 16 (16)
2011 08 09 212.8 MB 17.3 KB 74.0 KB 0.682 MB 0.00 KB 213.6 MB 12 (12)
2011 08 08 493.5 MB 32.9 KB 0.00 KB 0.00 KB 0.00 KB 493.5 MB 23 (23)
2011 08 07 260.0 MB 12.7 KB 502 KB 0.00 KB 0.00 KB 260.5 MB 9 (9)
2011 08 06 176.1 MB 3.09 KB 0.827 MB 0.928 MB 0.00 KB 177.8 MB 2 (2)
2011 08 05 157.6 MB 0.764 MB 0.00 KB 380 KB 0.00 KB 158.7 MB 9 (9)
2011 08 04 157.8 MB 11.0 KB 0.00 KB 0.00 KB 0.00 KB 157.8 MB 7 (7)
2011 08 03 154.1 MB 5.61 KB 6.19 KB 0.00 KB 0.00 KB 154.1 MB 4 (4)
2011 08 02 159.9 MB 4.28 KB 9.30 KB 0.00 KB 0.00 KB 159.9 MB 3 (3)
2011 08 01 168.3 MB 14.9 KB 74.5 KB 230 KB 0.00 KB 168.6 MB 10 (10)

175×30 额5G差不多我用够了

Last modification:December 27th, 2018 at 09:25 pm
If you think my article is useful to you, please feel free to appreciate