MyBB Community Forums
banned ip and banned email search algorithm? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: Security Management and Support (https://community.mybb.com/forum-179.html)
+--- Thread: banned ip and banned email search algorithm? (/thread-227311.html)



banned ip and banned email search algorithm? - Tahoe - 2020-04-14

The mechanisms in place to help keep the forum spam free are really fantastic.

I'm getting 5-10 blocks a day.  When my Spam Log shows a new attempt which has been blocked by the Stop Forum Spam lookup, I usually add that IP to the list of Banned IP's and sometimes add the email, or email domain to the list of Banned Email addresses.  As a result, these lists are starting to get to be somewhat long.  (If someone is particularly obnoxious - I just block the IP at my firewall).

How is the lookup of a banned IP or email done?  Is it a linear search through the list or a hash table, or some other function?  If it's a linear search - at what size of list do people start to see performance degradation on the forum?  Should I be concerned about the list getting too long and think about actively trimming it, or is that not a concern?

Thanks.


RE: banned ip and banned email search algorithm? - Devilshakerz - 2020-04-14

Related: https://github.com/mybb/mybb/issues/3878, https://github.com/mybb/mybb/issues/3876