Search found 2 matches

by ethanpil
08 Jun 2017, 16:25
Forum: General Discussion (csf)
Topic: Custom REGEX rules for CSF.
Replies: 92
Views: 1939233

Re: Custom REGEX rules for CSF.

I tweaked the regex little, but you should be getting the IP in $1 even with your original code.... not sure why you aren't. Are you sure you are reading the correct log file with CUSTOM2_LOG ? # MJ12-Bot / Baidu / Ahrefs if (($globlogs{CUSTOM2_LOG}{$lgfile}) and ($line =~ /(\S+).*\"*(?:GET|POS...
by ethanpil
16 May 2017, 21:11
Forum: General Discussion (csf)
Topic: Custom REGEX rules for CSF.
Replies: 92
Views: 1939233

Re: Custom REGEX rules for CSF.

Here are some rules I recently developed. I will try and keep them updated here: https://gist.github.com/ethanpil/97b62d9673327b5aeab90d8b3837843d NginX Security to block bad behaving web visitors These rules have helped me block vulnerability scanners, and bots/hackers scanning for varios versions ...