View Single Post
  #6 (permalink)  
Old June 21st, 2011
GregorK GregorK is offline
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

We are using CIDR notation to optimize memory use of ban rules.
If you like to ban the range 208.93.7.* you need to add the rule:
208.93.7.0 / 24
See: Classless Inter-Domain Routing - Wikipedia, the free encyclopedia

Even though you might need multiple rules to block part ranges, with this notation Phex is able to reduce memory costs for the address range to 5 bytes, which is the smallest it can get. This allows us to store the around 400.000 default address ranges included in Phex in about 2MB of memory. And I'm not worried about handling a few hundred thousand more.
__________________
Reply With Quote