Spamfilter to ignore whitespaces

If you have trouble on your server with spam, drones/zombies/bots or proxies

Moderator: Supporters

Locked
ivp
Posts: 24
Joined: Fri Sep 09, 2016 6:14 pm

Spamfilter to ignore whitespaces

Post by ivp »

To block URLs like:

Code: Select all

https://imgbbb.com/image/ABC123
we are using /spamfilter regex:

Code: Select all

imgbbb\.com
It worked fine until user started writing URLs like:

Code: Select all

https :// im gbbb.com/image/ABC123
So would need to modify regex to:

Code: Select all

i\s*m\s*g\s*b\s*b\s*b[\s.]*c\s*o\s*m
Since having 100 different URLs similar to this one, I'm worried this would slow down IRC.

Ideally there would be some option in spamfilter to eat all whitespaces before matching the regexp?
Locked