blacklist_to_modsec 1.4

I have released version 1.4 of blacklist_to_modsec. It includes many important and useful changes, and is a recommended upgrade for all current users.

Summary of notable changes:

  • Now directly using MT and Blacklist::Item modules to interface with the MT-Blacklist database
  • Option to enable backup of rules file (turned on by default, recommended for upgrading)

Other small behind-the-scenes changes were made as well, to improve efficiency and reliability.

Many, many thanks to ***David Phillips|http://tweezersedge.com/*** for help with testing and debugging the latest version of this script.

***Download and docs here|http://prwdot.org/docs/blacklisttomodsec.html***.

3 thoughts on “blacklist_to_modsec 1.4

  1. Mark Carey

    Thanks, Peter.

    This version won’t write the rules file when I run it. The only error I get is when it tries to do the backup, and says:

    “Couldn’t copy modsec_rules-test.txt to modsec_rules-test.txt.bak: No such file or directory at mtb_modsec.pl line 209”

    Let me know if you need any additional info…

    Reply
  2. Mark Carey

    I figured it out (I think). There seems to be a tiny buglet in that when it runs the first time (I wiped out my old rules file, old dat file, etc.) it tries to do the backup and fails if it can’t find the rules file. If no rules file exists, it should skip the backup step and write the rules file.

    In any case the rules file looks great. I will let you know how it goes…

    Thanks again,

    Mark

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *