如何阻止过度访问我的网站的机器人? [英] How to block a bot that is excessively visiting my site?

查看:73
本文介绍了如何阻止过度访问我的网站的机器人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此机器人不遵守robots.txt中的 nofollow noindex

This bot doesn't respect nofollow noindex in robots.txt.

我在机器人中拥有此功能。 txt:

I have this in robots.txt:

User-agent: Msnbot
Disallow: /

User-Agent: Msnbot/2.0b
Disallow: /

到现在为止,这确实很慢,但是现在,这是一个根本不会离开我网站的怪物。
爬行所有WordPress和MyBB 24/7。

Till now it was pretty slow, but now, it is a monster that won't leave my site at all. Crawls all WordPress and MyBB 24/7.

要阻止IP范围,或者我该怎么做才能阻止所有这些内容窃取者?

To block IP ranges or what can I do to stop all of this content stealers?

推荐答案

基于按用户代理阻止或空引用,您可以在.htaccess中添加类似的内容

Based on Block by useragent or empty referer you could something like this in your .htaccess

Options +FollowSymlinks  
RewriteEngine On  
RewriteBase /  
SetEnvIfNoCase User-Agent "^Msnbot" ban_agent
Deny from env=ban_agent

这篇关于如何阻止过度访问我的网站的机器人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆