问题描述
|
我正试图阻止一系列IP访问我的网站
这是我的.htaccess文件中的内容
order allow,deny
Deny from 64.244.0.0/64.245.255.255
Deny from 64.244.0.0/15
allow from all
我想知道是否有人可以告诉(或估计)我在那里封锁了多少IP?
解决方法
我相信第一个DENY FROM是错误的。我一直都这样看
64.244.0.0/15
Base Address^ ^Number of bits to use for subnet
这意味着您在deny块中有2 ^ 15个地址。
编辑
使用下面的评论,您想要的是
ORDER deny,allow
DENY from 64.244.0.0/15
ALLOW from all