I was wondering If I made a database to store a list of IP CIDR
in a database to block, how I could take an IP of a customer coming
in and find a quick way if it matches a blocked IP in the database?

For instance, in the database I would store something like this:

208.219.20.0/24 

Then if someone came in on 208.219.20.22, it would know that the entire
class C was blocked. Is there an easy way to deal with this type of
thing in PHP/MySQL?

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to