咱封了IP后以为没事了,结果下午wordpress又被打了喵...,这一打把我网站打到522了,恢复了好久喵....
所以我决定先把服务器停了喵,因为我要去上学了,我真的烦死了喵,真不懂干嘛打我呜呜呜
后世已经安排了喵....
服务器开个链接限制,然后还有机器人限制 要是nginx 的话可以参考,
server {
if ($bad_bot) {
return 403;
}
。。。。。。
}
server{
//日志文件改下也可以
log_format bot_log '$remote_addr - [$time_local] "$request" '
'$status "$http_user_agent" - "BLOCKED: $bad_bot"';
map $http_user_agent $bad_bot {
default 0;
# === 你指定的 bots ===
~*SemrushBot 1;
~*DataForSeoBot 2;
~*MJ12bot 3;
# === 商业爬虫 ===
~*AhrefsBot 4; # Ahrefs 爬虫
~*SEMrushBot 5; # 另一种写法
~*SeznamBot 6; # 捷克搜索引擎
~*BarkRowler 7;
~*BLEXBot 8;
~*BUbiNG 9;
~*CCBot 10;
~*COMODO 11;
~*Exabot 12;
~*MauiBot 13;
~*MeanpathBot 14;
~*MJ12bot 15;
~*dotbot 16;
~*Mail.RU_Bot 17;
~*PetalBot 18; # 华为爬虫
~*ResearchScan 19;
# === 垃圾爬虫 ===
~*80legs 20;
~*360Spider 21;
~*Bytespider 22; # 字节跳动爬虫
~*Ezooms 23;
~*Gigabot 24;
~*TurnitinBot 25;
~*ZoominfoBot 26;
~*BLEXBot 27;
~*LinkpadBot 28;
~*BarkRowler 29;
# === 中国爬虫 ===
~*Baiduspider 30; # 百度
~*Sogou 31; # 搜狗
~*YisouSpider 32; # 神马搜索
~*YandexBot 33; # 俄罗斯
~*Bytespider 34; # 字节跳动
# === 扫描器 ===
~*Nimbostratus 35;
~*CloudFlare-AlwaysOnline 36;
~*Scrapy 37;
~*HttpClient 38;
~*python-requests 39;
~*curl 40;
~*meta-webindexer 41;
}
}
这个是针对响应头做过滤机器人的。当然你们可以自己加
你这个还好啦。。我的服务器每天至少3G 访问输入24小时洪涝。之前开了udp53导致的。
不知道你们是如何做的。。cf是cf 我这个再加一个保险。。留言注册都要邮箱验证稍微好点吧。
|
主题数 32 |
帖子数 527 |
精华数 0 |