News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Robert Basic's Blog:
Honeypot for Zend Framework
April 21, 2010 @ 14:58:36

Robert Basic has posted a port of a WordPress plugin that helps you easily make a "honeypot" in your Zend Framework form to help keep the spam bots out.

I just hacked up a little code snippet based on Matthew's Honeypot Wordpress plugin. It's basically just a Validator for a Zend Form element which is hidden from the user via CSS. Cause it's hidden, users won't see it, but spambots will, well, cause they are bots.

The code snippet is included in the post for your cut & pasting pleasure and makes using it as easy as a normal "addElement" call when building your form.

0 comments voice your opinion now!
honeypot zendframework zendform form spam


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend Framework App Tutorial - Part 9: Zend_Vew and Displaying Blog Entries

DevShed: Using Code Igniter to Enable Comments in a Blog Application

Padraic Brady's Blog: Self-Contained Reusable Zend Framework Modules With Standardised Configurators

Spindrop.us: sfZendPlugin (a Zend Framework plugin for Symfony)

MaltBlue.com: How To Build an Extendible Zend Framework Application


Community Events











Don't see your event here?
Let us know!


unittest overview hack component introduction framework code application release security package symfony2 series composer install podcast facebook language hhvm opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework