Preventing spam submitted through forms using the laravel-honeypot package
Freek Van der Herten has just released a cool package called laravel-honeypot. Using this package, we can prevent spam easily.
How honeypots work? The majority of spam bots are pretty dumb. You can thwart most of them by adding an invisible field to your form that should never contain a value when submitted. Such a field is called a honeypot. These spam bots will fill all fields, including the honeypot. When a submission comes in with a filled honeypot field, our package will discard that request.
Introduction and tutorial
This post is submitted by one of our members. You may submit a new post here.