Description
Honeypot Spam Prevention for Laravel Applications
Overview
The honeypot method offers a straightforward and effective way to deter spam bots visiting your site. It relies on adding an input field that genuine users will leave empty while automated bots are likely to populate.
Package Functionality
- A hidden
<div>contains two fields:- Honeypot field (e.g.,
my_name) – expected to remain blank. - Honeytime field – an encrypted timestamp indicating when the page was served.
- Honeypot field (e.g.,
- Upon form submission, the package’s custom validator checks:
- The honeypot field is empty.
- The elapsed time from page load to submission exceeds a minimum threshold (typically 5 seconds).
If either condition fails—meaning the honeypot field has a value or the form was submitted too quickly—the request is flagged as likely spam and handled accordingly.
Creator
Maksim Surguy
@msurguy
Related Projects
Laravel Artifact
Media Management Package
Mirror
Impersonation Package
LaravelPlus Updater
Sync Laravel Projects
Laravel Credits
Credit Management System
Laravel Glider
Glide Image Manipulation in Blade Templates
Laravel Ownable
Eloquent Ownership Relationships