1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

PHP: Advanced Honeypot Fields: Stop Spam Without Annoying The User

  1. Clicks today:
    0
  2. Clicks this month:
    1
  3. Overall rating:
    0.00/5

PHP » Forms — over 2 years ago
Most spam bots aren't too smart and will fill all the fields they find in a form in attempt to spam it. This led to inventing super-simple "honeypot" fields - input fields hidden by CSS. Users don't see them and don't fill them, while bots fill them. In your backend you just have to check if the field is empty. If it is not, voila, you have caught a spammer.

Comments

Your Comment

You must be logged in to post a comment.