IIS 屏蔽垃圾蜘蛛

zblog2年前zblog问题解答46

<rule name="Block spider">

      <match url="(^robots.txt$)"   ignoreCase="false" negate="true" />

      <conditions>

        <add   input="{HTTP_USER_AGENT}"   pattern="gptbot|facebookexternalhit|ClaudeBot|Apache-HttpClient|SemrushBot|Webdup|AcoonBot|AhrefsBot|Ezooms|EdisterBot|EC2LinkFinder|jikespider|Purebot|MJ12bot|WangIDSpider|WBSearchBot|Wotbox|xbfMozilla|Yottaa|YandexBot|Jorgee|SWEBot|spbot|TurnitinBot-Agent|curl|perl|Python|Wget|Xenu|ZmEu"   ignoreCase="true" />

      </conditions>

      <action   type="AbortRequest" />

</rule>


相关文章

zblog创建表 和 删除表 的方法1

$table['cat_spider'] = '%pre%cat_spider'; # 定义这个可以使用 $zbp...

html中 &#20320;&#22909; 中 &# ;是啥意思20320 又是啥意思 字符实体引用(Character Entity Reference)

在HTML中,&#xxxx; 是一种字符实体引用(Character Entity Reference)的表示方法,用于在网页中插入那些无法直接在HTML代码中表示的字符。这里的&n...

mysql 优化表 表优化 OPTIMIZE

定期运行数据库维护任务,如  OPTIMIZE TABLE zbp_post ANALYZE TABLE zbp_post ,以保持...

(文件名特殊字符过滤)文件夹或文件名字中不能使用的特殊字符共有9个,过滤文件名中的特殊字符,并处理过滤后长度为0的情况

# 过滤文件名中的特殊字符,并处理过滤后长度为0的情况 function guiyi_txt_sanitize_file_name($fileName) {  &n...

zblog文章重复 判断文章是否存在

1、方法1 $article = $zbp->GetListType('Post', 'select * from...

CPU高 mysql top 100% kill 进程id重启

CPU高 mysql top 100% kill 进程id重启topkill 进程id...