本文介绍了IP地址的区块范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图从访问我的网站
下面是我在我的.htaccess文件
Here is what I have in my .htaccess file
order allow,deny
Deny from 64.244.0.0/64.245.255.255
Deny from 64.244.0.0/15
allow from all
我想知道如果任何人都可以告诉(或估算)我有多少IP地址已被阻止我吗?
I'd like to know if anyone can tell (or estimate) me how many IPs have i blocked there?
推荐答案
我相信第一个拒绝从是错误的。我总是看到它这样
I believe the first DENY FROM is just wrong. I've always seen it this way
64.244.0.0/15
Base Address^ ^Number of bits to use for subnet
这将意味着你有2 ^ 15个地址的拒绝块。
This would mean that you have 2^15 addresses in the deny block.
修改的
使用下面的评论,你会想要的是
Using the comments below, what you would want is
ORDER deny,allow
DENY from 64.244.0.0/15
ALLOW from all
这篇关于IP地址的区块范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!