pluginkollektiv / antispam-bee

„... another popular solution to fight spam is Antispam Bee“ – Matt Mullenweg, Q&A WordCamp Europe 2014
https://wordpress.org/plugins/antispam-bee/
GNU General Public License v2.0
162 stars 26 forks source link

Add better Custom Pattern Control #410

Open Zodiac1978 opened 3 years ago

Zodiac1978 commented 3 years ago

We have a mighty RegEx pattern feature which can be used for own patterns via filter. Unfortunately there are some built-in patterns and you can't enable the patterns added through the filter without enabling the built-in ones. At the moment this is not a problem, but it could be in the future.

I am talking about these patterns:

https://github.com/pluginkollektiv/antispam-bee/blob/64a2e1634d36ec34640dbaa617e532006778e91f/antispam_bee.php#L1575-L1605

We could split this up in two settings (Regex filter feature and built-in patterns) or we could overhaul the whole feature to support a better control for the built-in patterns. Maybe with enable/disable functionality for each pattern and a delete/add/edit feature for the patterns.

Unfortunately this is not possible (at least not from the outside) with our approach in v2, but I wanted to add this issue to have this in mind for the upcoming v3.

Zodiac1978 commented 3 years ago

Maybe this is worth a new issue, but at the moment I think this is a good place to put it:

Is it possible to define an IP range (instead of just one IP) as a pattern? This would be much more helpful if you want to block a complete host.