Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

I need some help in custom CSF regex

Comments

3 comments

  • SimpleSonic
    You can hire a developer on Upwork if you are unable to do so yourself.
    0
  • cPRex Jurassic Moderator
    I also don't have anything pre-made that would do this type of work on my end.
    0
  • vanessa
    I can get you started but you'd likely be looking at hiring someone to write this for you. You need to specify a custom log, like: CUSTOM2_LOG = "/var/log/mylog.log" Then create a custom rule to parse it, ie: if (($lgfile eq $config{CUSTOM2_LOG}) and ($line =~ /([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/)) { return ("Own Blacklist",$1,"Blacklisted","2","80","600"); }
    0

Please sign in to leave a comment.