• Resolved GerryBot

    (@gerrybot)


    Hi folks. Let’s say I wanted to add multiple values to the WP_FAIL2BAN_BLOCKED_USERS variable. Is the right way to do that by piping additional values into the regex as below?

    define(‘WP_FAIL2BAN_BLOCKED_USERS’,’^admin|webmaster|domain$’);

    Or can you use multiple ‘define’ statements?

    https://www.ads-software.com/plugins/wp-fail2ban/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author invisnet

    (@invisnet)

    The right way is to modify the regex as in your example – PHP won’t let you have multiple defines.

    Thread Starter GerryBot

    (@gerrybot)

    Thanks for getting back to me on that – I see a lot of attacks using the domain name or different types of admin account, so I want to block those as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fail2Ban – multiple values for WP_FAIL2BAN_BLOCKED_USERS’ is closed to new replies.