Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 940 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 940 Bytes

wp-fail2ban/conf.d

A collection of standard configurations for WP fail2ban.

Usage

First, update the configuration files to the latest version:

[invisnet@test wordpress]$ cd wp-content/plugins/wp-fail2ban/conf.d
[invisnet@test conf.d]$ git pull
Already up to date.
[invisnet@test conf.d]$

Next, copy the configuration file to your wp-content directory. Be sure to name it wp-fail2ban-config.php.

[invisnet@test conf.d]$ cp default-all.php ../wp-fail2ban-config.php
[invisnet@test conf.d]$

Then, edit your wp-config.php file and add the following line:

include __DIR__.'/wp-content/wp-fail2ban-config.php';

Be sure to add it before the line that says:

/* That's all, stop editing! Happy blogging. */

Finally, if there are any changes you want to make, edit wp-fail2ban-config.php.


default-all.php:

  • Default logs
  • All features enabled