WPF2B_EVENT_COMMENT_SPAM
Comment marked as spam.
Premium listener: WPF2B_EVENT_COMMENT_SPAM.
Premium emits this event when a stored comment is classified as spam while WP_FAIL2BAN_LOG_SPAM is enabled. It applies both when WordPress stores the comment as spam and when the comment is marked as spam later.
If ordinary comment logging is also enabled, storing the same comment can separately emit WPF2B_EVENT_COMMENT.
The address is the comment author’s stored IP. When a moderator marks an existing comment as spam, that stored address is used rather than the moderator’s request address.
Comments discarded by Akismet instead use WPF2B_EVENT_COMMENT_SPAM_AKISMET because they are not retained in WordPress.
The message records the actual WordPress comment type in its
F-COMMENT_TYPE capture; comment is one possible value.
syslog |
Facility |
||
Level |
NOTICE |
||
Example |
|
||
fail2ban |
Filter |
filters-wordpress-hard |
|
Rule |
|||
EventData |
ref_id |
|
Comment ID |
History
Changed in version 6.0.0: Added F-COMMENT_TYPE and F-COMMENT_ID tags.
Added in version 4.0.0.