2015-04-14 117 views

回答

0

我最终使用:

<Limit GET HEAD POST> 
order allow,deny 
allow from all 
deny from 103.4.8. 
deny from 103.4.9. 
.. 
deny from 103.4.15. 
</Limit> 
2

您可以通过给一个地址范围内的IP /网络掩码对:

deny from 127.0.55.0/24 

但是,由于范围55-75不是2的幂,所以我看不出如何从它们中取出范围。我会添加几条规则。

order allow,deny 
deny from 127.0.55.0/24 // Matches 55 
deny from 127.0.56.0/21 // Matches 56 to 64 
deny from 127.0.64.0/21 // Matches 64 to 71 
deny from 127.0.72.0/22 // Matches 72 to 75 

deny from 127.0.235.0/24 // Matches 235 
deny from 127.0.236.0/22 // Matches 236 to 239 
deny from 127.0.240.0/21 // Matches 240 to 255 
allow from all 
+0

你从哪儿弄来的@Starkeen这些IP地址? – Steve