Introduction | laravel-honeypot-go | Spatie       

 SPATIE  

laravel-honeypot-go
===================

spatie.be/open-source

  [Docs](https://spatie.be/index.php/docs)  [Laravel-honeypot-go](https://spatie.be/index.php/docs/laravel-honeypot-go/v1)  Introduction

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-honeypot-go/v1) 

  Introduction    
- [ Introduction ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/introduction)
- [ Installation and setup ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/installation-and-setup)
- [ Usage ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/usage)
- [ Testing ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/testing)
- [ Releasing ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/releasing)
- [ Changelog ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/changelog)
- [ Support us ](https://spatie.be/index.php/docs/laravel-honeypot-go/v1/support-us)

  Laravel-honeypot-go 
=====================

 Prevent spam submitted through forms in Laravel Go 

### Useful links

- [Repository](https://github.com/spatie/laravel-honeypot-go)
- [Discussions](https://github.com/spatie/laravel-honeypot-go/discussions)

Introduction
------------

When adding a form to a public site, there's a risk that spam bots will try to submit it with fake values. Luckily, the majority of these 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 just fill all fields, including the honeypot.

When a submission comes in with a filled honeypot field, this package will discard that request. On top of that this package also checks how long it took to submit the form. This is done using an encrypted timestamp in another invisible field. If the form was submitted in a ridiculously short time, the anti spam will also be triggered.

This is the Go port of Spatie's Laravel Honeypot package. After installing it, add `{{honeypot}}` to your Go template and attach `honeypot.ProtectAgainstSpam{}` to the submission route. The package also supports manually passing the necessary values to your view layer, so you can easily add honeypot fields to your Inertia powered app.

Start with [installation and setup](installation-and-setup), then read [usage](usage).

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
