Comment-attempt logging writes a message when WordPress rejects a submission before storing a comment. A fail2ban jail can then count clients that repeatedly submit to missing, closed, or otherwise unavailable posts, even though no comment appears for a moderator to review.
WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS enables all of these rejected-comment messages. It covers missing, closed, trashed, draft, and password-protected posts through the classic form, REST creation, and XML-RPC comment creation. A reply to an unapproved parent comment is additionally covered on the classic form. These messages can match the soft filter; the jail decides whether repeated matches lead to a ban.
Comment attempts
Comment-attempt logging writes a message when WordPress rejects a submission before storing a comment. A fail2ban jail can then count clients that repeatedly submit to missing, closed, or otherwise unavailable posts, even though no comment appears for a moderator to review.
WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS enables all of these rejected-comment messages. It covers missing, closed, trashed, draft, and password-protected posts through the classic form, REST creation, and XML-RPC comment creation. A reply to an unapproved parent comment is additionally covered on the classic form. These messages can match the soft filter; the jail decides whether repeated matches lead to a ban.
References
Constants
WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS
WP_FAIL2BAN_COMMENT_ATTEMPT_LOG
Events
WPF2B_EVENT_COMMENT_NOT_FOUND
WPF2B_EVENT_COMMENT_CLOSED
WPF2B_EVENT_COMMENT_TRASH
WPF2B_EVENT_COMMENT_DRAFT
WPF2B_EVENT_COMMENT_PASSWORD
WPF2B_EVENT_COMMENT_UNAPPROVED_COMMENT
Filters
wordpress-soft.conf