NYCPHP Meetup

NYPHP.org

[nycphp-talk] stopping comment spam with PHP

Michael Hernandez sequethin at gmail.com
Tue Jun 2 16:18:29 EDT 2009


On Tue, 2009-06-02 at 16:11 -0400, Konstantin Rozinov wrote:
> Hi guys,
> 
> I'm interested in hearing what kind of classes, packages, solutions
> the professionals on this list use to protect their sites against spam
> in relation to comments.
> For example, users commenting on other user's pages like Facebook or
> any social networking site.
> 
> I am not using WordPress, Drupal, or other CMS, blog software,
> frameworks, so plugins for those won't work, but maybe I can learn
> something from them.
> 
> Basically, I'm interested in hearing opinions on different options to
> block comment spam.
> 
> Currently, I'm only using a visual CAPTCHA, but I'm afraid that that
> is easily defeatable.
> 
> I've also heard of using hidden form fields, and checking if they're
> filled in or not on the backend when the form is processed.
> 
> Any other ideas?

Zend Framework has an akismet service component that you might find
useful:

http://framework.zend.com/manual/en/zend.service.akismet.html

Akismet helps my wordpress blog stay pretty much 100% free of comment
spam, though I do get occasional spam user sign-ups...

--Mike H




More information about the talk mailing list