Page 1 of 1

Spamfilter to ignore whitespaces

Posted: Wed Aug 26, 2020 4:18 pm
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?