New in version 4.0.0.
WPf2b can optionally log the following comment-related events:
- Not found
Attempted comment on a non-existent post
Attempted comment on a post with closed comments
Attempted comment on a post in Trash
Attempted comment on a Draft post
Attempted comment on a password-protected post
To enable this feature OR the event constants; for example, to enable Closed and Draft:
define('WP_FAIL2BAN_LOG_COMMENTS_EXTRA', WPF2B_EVENT_COMMENT_CLOSED | WPF2B_EVENT_COMMENT_DRAFT);
You must also load the constants before trying to use them. In wp-config.php add:
or for the Premium version:
If you have non-standard paths, e.g. plugins in a different place, you’ll need to adjust the include path to suit.