I\'m trying to implement an IP banning system into my web app using MySQL, i know i can do it using .htaccess
but that\'s not neat to me.
Basically my curre
My suggestion might make some cringe, but you seem to be going for nontraditional in this project so here it goes: Parse each IP from the database into a regex that can be compared against the user's IP. Example:
And of course you can do much more with this. You could cache the regex to save querying the database on every request or even expand your wild card options to includes IP ranges.