<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matthew Turland &#187; WordPress</title>
	<atom:link href="http://matthewturland.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthewturland.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 04:03:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>I&#8217;m a Honey Pot</title>
		<link>http://matthewturland.com/2010/01/01/im-a-honey-pot/</link>
		<comments>http://matthewturland.com/2010/01/01/im-a-honey-pot/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 04:01:03 +0000</pubDate>
		<dc:creator>Matthew Turland</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://matthewturland.com/?p=39</guid>
		<description><![CDATA[Side note: Yes, the title of this post is a throwback to the 418 status code in the HTTP protocol. My sense of humor is just odd that way. I thought I&#8217;d kick things off on my new blog with a quick post on something I did while getting it set up. Before switching to [...]]]></description>
			<content:encoded><![CDATA[<p><em>Side note: Yes, the title of this post is a throwback to the <a title="List of HTTP status codes - Wikipedia, the free encyclopedia" href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error">418 status code</a> in the HTTP protocol. My sense of humor is just odd that way.</em></p>
<p>I thought I&#8217;d kick things off on my new blog with a quick post on something I did while getting it set up.</p>
<p>Before switching to this new blog, I&#8217;d moved to using the <a title="habari-extras - Revision 2625: /plugins/spamhoneypot/trunk" href="http://svn.habariproject.org/habari-extras/plugins/spamhoneypot/trunk/">spamhoneypot</a> plugin on my old <a title="Habari Project" href="http://habariproject.org/en/">Habari</a> blog to capture spam. I had a great amount of success in that switch, but in deciding to move to using <a title="WordPress › Blog Tool and Publishing Platform" href="http://wordpress.org/">WordPress</a> on this new blog, I noticed that it had no equivalent <a title="WordPress › WordPress Plugins" href="http://wordpress.org/extend/plugins/">plugins</a>. There were several anti-spam plugins, but they all required use of a third-party service. I hadn&#8217;t seen consistent success with plugins that used this approach in the past, so I wanted to avoid repeating those experiences.</p>
<p>So, I decided to try my hand at <a title="Writing a Plugin « WordPress Codex" href="http://codex.wordpress.org/Writing_a_Plugin">writing a WordPress plugin</a>. After wading through the <a title="Plugin API/Filter Reference « WordPress Codex" href="http://codex.wordpress.org/Plugin_API/Filter_Reference#Database_Writes_2">filter</a> and <a title="Plugin API/Action eference « WordPress Codex" href="http://codex.wordpress.org/Plugin_API/Action_Reference#Comment.2C_Ping.2C_and_Trackback_Actions">action</a> documentation and googling around for a bit, I came up with a fairly simple plugin that seems to do the job.</p>
<p>The plugin works by adding a textarea field to the comment form that&#8217;s hidden using a CSS style. Since bots don&#8217;t generally detect CSS like this, they proceed to fill out the field like any other field. This implies that they aren&#8217;t a human being using a browser, in which case the plugin marks the comment as spam. I&#8217;ve found this catches the vast majority of spam comments with very few false results.</p>
<p>I&#8217;ve submitted to have the plugin hosted on the WordPress site, but until then, you can grab a copy off of a <a title="elazar's wp-spam-honeypot at master - GitHub" href="http://github.com/elazar/wp-spam-honeypot">Github repository</a> I&#8217;ve set up for it. Hope you find it useful!</p>
<p><strong>Update 1/2/10 8:41 AM CST</strong>: The plugin is now available for download from the <a title="WordPress › Spam Honey Pot « WordPress Plugins" href="http://wordpress.org/extend/plugins/spam-honeypot/">WordPress site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://matthewturland.com/2010/01/01/im-a-honey-pot/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
