Categories


Tags


apache、iis规则屏蔽拦截蜘蛛抓取

如果是正常的搜索引擎蜘蛛访问,不建议对蜘蛛进行禁止,否则网站在百度等搜索引擎中的收录和排名将会丢失,造成客户流失等损失。

可以优先考虑升级虚拟主机型号以获得更多的流量或升级为云服务器(不限流量)。更多详情请访问: http://www.west.cn/faq/list.asp?unid=626

Linux下规则文件.htaccess(手工创建.htaccess文件到站点根目录)

<IfModule mod_rewrite.c>

RewriteEngine On

#Block spider

RewriteCond %{HTTP_USER_AGENT} "SemrushBot|Webdup|AcoonBot|AhrefsBot|Ezooms|EdisterBot|EC2LinkFinder|jikespider|Purebot|MJ12bot|WangIDSpider|WBSearchBot|Wotbox|xbfMozilla|Yottaa|YandexBot|Jorgee|SWEBot|spbot|TurnitinBot-Agent|mail.RU|curl|perl|Python|Wget|Xenu|ZmEu" [NC]

RewriteRule !(^robots\.txt$) - [F]

</IfModule>

Windows2008、2012或更高系统下规则文件web.config (手工创建web.config文件到站点根目录)

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<system.webServer>

<rewrite>

<rules>

<rule name="Block spider">

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

<conditions>

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

</conditions>

<action type="AbortRequest"/>

</rule>

</rules>

</rewrite>

</system.webServer>

</configuration>

注:“{HTTP_USER_AGENT}”所在行中是不明蜘蛛名称,根据需要添加以"|"为分割。

规则中默认屏蔽部分不明蜘蛛,要屏蔽其他蜘蛛按规则添加即可,附各大蜘蛛名字:

google蜘蛛:googlebot

百度蜘蛛:baiduspider

百度手机蜘蛛:baiduboxapp

yahoo蜘蛛:slurp

alexa蜘蛛:ia_archiver

msn蜘蛛:msnbot

bing蜘蛛:bingbot

altavista蜘蛛:scooter

lycos蜘蛛:lycos_spider_(t-rex)

alltheweb蜘蛛:fast-webcrawler

inktomi蜘蛛:slurp

有道蜘蛛:YodaoBot和OutfoxBot

热土蜘蛛:Adminrtspider

搜狗蜘蛛:sogou spider

SOSO蜘蛛:sosospider

360搜蜘蛛:360spider

apache、iis屏蔽限制ip访问(适用虚拟主机)

来源:西部数码


Public @ 2021-01-23 15:47:21

Windows Server 2008R2系统安装Oracle10g数据库

问题描述:Windows Server 2008R2系统安装Oracle 10g版本数据库,当运行exe程序时,安装程序会自动检测系统是否满足安装所需的先决条件,首先检查系统的内核版本,出现如图提示后无法继续安装。图片1.png此处需要提一下微软内核常见内核版本与操作系统的对应关系Windows 2000 (NT 5.0 )Windows xp (NT 5.1)Win server 2003和wi

Public @ 2012-06-28 15:47:07

Windows Server的IIS和Apache性能

IIS和Apache都是流行的Web服务器软件,但它们的性能和特性不同。以下是对它们性能方面的比较: 1. 处理速度: IIS通常比Apache更快,尤其是在Windows环境下。这是因为IIS是Microsoft的官方Web服务器,紧密集成了Windows操作系统和ASP.NET技术。 Apache的性能则取决于它运行在的服务器硬件和软件配置。 2. 稳定性:IIS因为紧密集成Windows

Public @ 2023-06-27 09:50:57

apache、iis规则屏蔽拦截蜘蛛抓取

如果是正常的搜索引擎蜘蛛访问,不建议对蜘蛛进行禁止,否则网站在百度等搜索引擎中的收录和排名将会丢失,造成客户流失等损失。可以优先考虑升级虚拟主机型号以获得更多的流量或升级为云服务器(不限流量)。更多详情请访问: http://www.west.cn/faq/list.asp?unid=626Linux下规则文件.htaccess(手工创建.htaccess文件到站点根目录)<IfModule

Public @ 2021-01-23 15:47:21

更多您感兴趣的搜索

0.760322s