WPF2B_EVENT_COMMENT_UNAPPROVED_COMMENT

Attempted reply to an unapproved comment.

Premium listener: WPF2B_EVENT_COMMENT_UNAPPROVED_COMMENT.

Premium emits this event when the classic comment form rejects a reply because its parent comment has not been approved. WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS enables this event.

syslog

Facility

WP_FAIL2BAN_COMMENT_EXTRA_LOG

Level

NOTICE

Example

Comment attempt on unapproved comment 7 on post 42 on fqdn.example.com from 192.0.42.1

fail2ban

Filter

wordpress-soft.conf

Rule

Comment attempt on <F-POST_STATUS>(?:non-existent|closed|trashed|draft|password-protected|unapproved comment)</F-POST_STATUS>(?:(?<=unapproved comment) <F-COMMENT_ID>\d+</F-COMMENT_ID> on post|(?<!unapproved comment) post) <F-POST_ID>\d+</F-POST_ID><_tail>

EventData

ref_id

Post ID. The parent comment ID is in waf_data.comment_parent.

History

Added in version 6.0.0.