« Nokia E50 | (回到Blog入口) | 有没有这样一款针对儿童的手机软件 »

百度MP3太恶心了

每天10G的流量被它盗链……
现在.htaccess 文件里面添加了以下几句看看效果~
之前那篇文章只能禁止百度MP3的蜘蛛,对已经被收录的无效,上个月盗链接近300G流量……

SetEnvIfNoCase Referer "^http://www.your-domain-name-here.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.your-domain-name-here.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://your-domain-name-here.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://your-domain-name-here.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch ".(gif|png|jpe?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>

有需要的朋友直接把代码中的your-domain-name-here替换为你的域名~
<FilesMatch ".(gif|png|jpe?g)$">
这句中添加你要禁止盗链的文件的后缀名

很生气~!

评论 (2)

是指国外的空间被连么?呵呵,那样就亏大了。。

昨天你留言的时候我都已经睡觉了~~

国外空间有流量限制,当然不爽~

发表一个评论

(如果你此前从未在此 Blog 上发表过评论,则你的评论必须在 Blog 主人验证后才能显示,请你耐心等候。)