Jump to content

New php class to prevent spam form submissions via honeypot field


Juergen
 Share

Recommended Posts

Hello,

today I want to introduce you to a php honeypot class that I have implemented to my forms to prevent form submissions via spam bots: https://github.com/dominiquevienne/honeypot

The class creates a honeypot and a token field. It checks for

  • time from page rendering to form submission
  • correct token
  • filled in honepot field
  • failure attempts

All settings can be changed via a config array (fe set min time until form submission to 5 seconds, if the form will be submitted faster it must be a spam bot,...).

Just take a look at the documentation and maybe its interesting for you.

Best regards

  • Like 3
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...