#53 Case-insensitive in the regexp

open
nobody
None
5
2009-12-17
2009-12-17
Anonymous
No

As far as I have used fail2ban it doesn't support ignorecase in the failregex option in the filters.

It would be great to have a config option like "IGNORECASE = 1" to select if we want all our failregex to be case-sensitive or insensitive.

I have changed the file server/failregex.py:

diff failregex.py /usr/local/src/fail2ban-0.8.4/server/failregex.py
51c51
< self._regexObj = re.compile(regex, re.IGNORECASE)
---
> self._regexObj = re.compile(regex)

I'll try to make a patch with the option to make this feature,

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks