• Resolved Ben Besselink

    (@besselink)


    Hello,

    can you please append following line to the function sbbmoreone2 at line 1339 of file /functions/functions.php:

    apply_filters(‘sbbmoreone2_filter’,$stopbadbotsip);

    So i can develope following fail2ban helper plugin/drop-in like:

    add_filter(‘sbbmoreone2_filter’,’stopbadbots_fail2ban’,10,1);
    function stopbadbots_fail2ban($stopbadbotsip) {
    exec(‘fail2ban-client set plesk-apache-badbot banip ‘ . $stopbadbotsip);
    }

    Kind regards,
    RHEIN WEB
    Ben Besselink

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Ben,
    Thanks for the suggestion.
    Looks like this will work only with Plesk Panel.
    Next week I will run some tests also with cPanel and Wpanel.
    You can try it by including that code using your Plesk panel editor or ad some FTP plugin.
    Cheers,
    Bill

    Thread Starter Ben Besselink

    (@besselink)

    Hello Bill,

    many thanks for reply.

    It works on every linux platform because the fail2ban command is always the same. only the jail has to be to adjust:

    – apache-badbot is standard
    – plesk-apache-badbot is apache inside plesk platform

    I’m only asking because the WordPress filter won’t affect your code as long as you put it at the end of the function. And I save the adjustments regarding fail2ban with your updates.

    greetings,
    Ben

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Ben,
    Thanks for your info.
    Cheers,
    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Ben,
    I will check this week and let you know.
    Cheers,
    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Ben,

    For a while, you can add on your site.
    I’m thinking about how to improve this fail to ban reports on our plugin and I will let you know.
    Cheers,
    Bill

    Thread Starter Ben Besselink

    (@besselink)

    Hello Bill,

    Thank you so much!

    I wrote a little PHP script. As is well known, the plugin sends emails. I receive these emails in a specific mailbox. Every minute the script fetches the e-mails from the e-mail inbox and reads the IP addresses and forwards them to Fail2Ban. The script has been running smoothly for 24 hours.

    Best wishes
    Ben

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Ben,
    Great! I’m happy to know about that.
    Cheers,
    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    I hope this is sorted, gonna go ahead and mark as “resolved” to help keep things organized. Feel free to post again with any further questions or feedback, etc. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fail2Ban Integration’ is closed to new replies.