Quote:
Originally Posted by kh99
apleschu has been kind enough to share his additions, but I haven't had a chance to release them yet. But I will.
Regarding the banned ip lookup, I don't really know what to recommend when it comes to that kind of thing. But I remember a few years ago we tried this thing called zbblock which automatically blocked IPs, and the way it works is to ban one it appends it to a file (separated from the preceding one by a comma). Then to check an ip it does file_get_contents, then uses the php function substr_count. Anyway, just another idea. Edit: ...but now that I think about it, that was probably done because zbblock doesn't use a database at all. Although it does have the advantage of being able to do it's work before vbulletin does it's initialization.
|
Right now I have the blocked IPs in the default blocked IP list. *I* am a fan of using standard facilities unless there is a need not to, so for now I see no reason not to keep the list of IPs in the default spot.
In addition I have set it up in a way so that the list is also sorted, so that it can be searched faster by a binary search rather than the linear search that is currently implemented. Either someone else is going to implement the binary of at some point in the future when I get to have too much time on my hands again I will change/add that
kh99: I am going to IM you what you need. Specifically because I made this already IPv6 safe

So there are a few changes to the package I sent you, that was only IPv4