WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS

Log attempted comments.

Default setting: disabled

Added in version 5.0.0.


Enables logging of failed comment attempts. When enabled, the following events will be logged to the syslog facility specified by WP_FAIL2BAN_COMMENT_ATTEMPT_LOG:

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.

Example: Enable logging of comment attempts
/**
 * Log attempted comments.
 */
define('WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS', true);