[英]How do I block IPs using htaccess
How can I stop these IP addresses from hitting my site (185. . .* and 93.127. . ). 我怎样才能击中我的网站停止这些IP地址(185。*和93.127。)。
I have tried these in .htaccess: 我已经在.htaccess中尝试了这些:
Order Allow,Deny
订单允许,拒绝
Deny from 185.162.0.0/15
从185.162.0.0/15起拒绝
Deny from 185.164.0.0/14
拒绝自185.164.0.0/14
Deny from 185.168.0.0/13
从185.168.0.0/13起拒绝
Deny from 185.176.0.0/12
从185.176.0.0/12起拒绝
Deny from 185.192.0.0/11
从185.192.0.0/11起拒绝
Deny from 93.127.0.0/16
拒绝自93.127.0.0/16
Allow from all
全部允许
and bots from http://tab-studio.com/en/blocking-robots-on-your-page/ but I continue to be hit. 和来自http://tab-studio.com/zh-CN/blocking-robots-on-your-page/的漫游器,但我仍然受到打击。
Good: Edit (or create) the .htaccess
file in the root of your server and put the following code: 很好:在服务器的根目录中编辑(或创建)
.htaccess
文件,然后输入以下代码:
order allow, deny
deny from 210.140.98.160
deny from 69.197.132.70
deny from 74.14.13.236
allow from all
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.