Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if honeypot injection worked to avoid marking everything as spam #544

Open
Zodiac1978 opened this issue Nov 4, 2023 · 0 comments
Open

Comments

@Zodiac1978
Copy link
Member

From the ssupport forums:

Like others, I have experienced an issue where all comments are being marked as “honeypot”. I did not realize the issue right away as my site rarely gets valid comments, but I do receive a lot of actual spam. What fixed my problem was selecting “Check complete site markup for comment forms” checkbox under More / Various Options under settings.

Possibly because my site uses an older theme and the comment code isn’t in the expected location, the hook “comment_form_field_comment” / prepare_comment_field method wasn’t getting triggered. This means the comment textarea wasn’t getting rewritten with the honeypot form field.

When comments are submitted, the Antispam Bee code always assumes that the honeypot form field has been created and and in cases where this isn’t the case, the code will always detect a comment as spam. It would be nice if code could be added to detect whether the honeypot form field was successfully created, and then the honeypot spam detection could be conditional on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant