Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've implemented hook_honeypot_reject() to maintain a list of IP addresses rejected more than N times in the last 30 days, so I can feed that to the server's firewall.
When honeypot is triggered because a spammer enters a value in the hidden field, the hook fires once with $type == 'honeypot'
, then again microseconds later with $type == 'honeypot_time'
.
Comments
Comment #1
John Pitcairn CreditAttribution: John Pitcairn commentedHuh. I can't reproduce this now. Apologies for the noise.