百度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 条评论

回复 Hugo.Leen 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

返回主页看更多
狠狠的抽打博主 支付宝 扫一扫