谁有办法禁止百度mp3来爬我文件(附解决方法 1)

鸭的,简直流氓啊,不知道是啥agent,不说出来真不厚道.我开了两天日志也没抓到特殊的user-agent.被他一抓,服务器挂了两回.就两个歌花了30M流量,猛,真猛.

头疼.

感谢山贼同志的提醒,找到了一篇文章讲百度禁止爬行mp3的方法.利用的还是伟大的mod_rewrite模块,判断来路.

RewriteEngine on
RewriteCond %{HTTP_REFERER} mp3\.baidu\.com [NC,OR]
RewriteCond %{HTTP_REFERER} m\?ct=
RewriteRule .* – [F]

4 Responses to 谁有办法禁止百度mp3来爬我文件(附解决方法 1)

  1. 皓仔 says:

    等我学会了编程,我就写一个来爬一下!
    全部把老大您的东西爬到我硬盘里面去!节省流量

  2. zhlsk says:

    :em02: 别人都改称魔王了!

  3. lee says:

    ISAPI_REWRITE,改天有时间俺也写个.
    F是转向吧
    牛人.

  4. 赵明亮 says:

    妈的,忘了说了,是iis的,靠…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>