Honeypot

Honeypot

Honeypot spam prevention for Laravel applications


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.
  • Upon form submission, the package’s custom validator checks:
    1. The honeypot field is empty.
    2. 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

Laravel Artifact

Media Management Package

Mirror

Mirror

Impersonation Package

LaravelPlus Updater

LaravelPlus Updater

Sync Laravel Projects

Laravel Credits

Laravel Credits

Credit Management System

Laravel Glider

Laravel Glider

Glide Image Manipulation in Blade Templates

Laravel Ownable

Laravel Ownable

Eloquent Ownership Relationships