News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
Wez Furlong's Blog:
Blog Spam - a Solution
July 18, 2005 @ 06:09:05

For those dealing with comment spam, Wez Furlong might have a simple, quick answer to help.

Today, this blog got its first ever spam, via the trackback interface. How annoying. Here's how I've stopped it (yes, the regexes could be better, and the parse_url() call eliminated, but its late and this is a quick hack).

These two functions implement RBL and SURBL checks. RBLs, as you probably already know, are real-time block lists; you can look up an IP address in a block list using DNS, and if you get a record back, that address is in the block list. The first of the two functions implements this, in a bit of a lame hackish way.

It's a simple, but effective method, and has been implemented as a part of the Services_Trackback package already (along with several other helpful methods)...

0 comments voice your opinion now!





Community Events





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


development release custom opinion conference component series community interview introduction phpunit database application framework podcast unittest api symfony2 test language

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