WP_FAIL2BAN_LOG_COMMENT_ATTEMPTSΒΆ
Log attempted comments.
Default setting: disabled
New in version 5.0.0.
WPf2b can optionally log the following comment-related events:
| Not found | Attempted comment on a non-existent post. |
| Closed | Attempted comment on a post with closed comments. |
| Trash | Attempted comment on a post in Trash. |
| Draft | Attempted comment on a Draft post. |
| Password-protected | Attempted comment on a password-protected post. |
/**
* Log attempted comments.
*/
define('WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS', true);
The comment ID and IP will be written to WP_FAIL2BAN_COMMENT_ATTEMPT_LOG and matched by wordpress-soft.conf.
See also