<?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>Paul Butler &#187; JavaScript</title>
	<atom:link href="http://paulbutler.org/archives/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulbutler.org</link>
	<description></description>
	<lastBuildDate>Tue, 28 Feb 2012 14:45:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JSSpamBlock 1.2</title>
		<link>http://paulbutler.org/archives/jsspamblock-12/</link>
		<comments>http://paulbutler.org/archives/jsspamblock-12/#comments</comments>
		<pubDate>Sun, 01 Apr 2007 16:26:46 +0000</pubDate>
		<dc:creator>Paul Butler</dc:creator>
				<category><![CDATA[JSSpamBlock]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.paulbutler.org/archives/jsspamblock-12/</guid>
		<description><![CDATA[Update: Due to lack of time and interest (on my part), I am no longer maintaining JSSpamBlock or ImageScaler. I have made a few small changes to JSSpamBlock, my WordPress spam detection plugin. I found that the plugin had some &#8230; <a href="http://paulbutler.org/archives/jsspamblock-12/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Due to lack of time and interest (on my part), I am no longer maintaining JSSpamBlock or ImageScaler.</strong></p>
<p>I have made a few small changes to JSSpamBlock, my WordPress spam detection plugin. I found that the plugin had some problems with custom WordPress themes, since some theme developers apparently don&#8217;t include the comment form hook. I have added instructions on how to call JSSpamBlock manually from the template file. I have also fixed the plugin for older versions of WordPress which did not have the wp_die() function.</p>
<p>The plugin is now hosted at the WordPress Plugin Directory. You can find it&#8217;s page here:  <a href="http://wordpress.org/extend/plugins/jsspamblock/">JSSpamBlock 1.2</a>. If you have a working installation, there is no reason to upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulbutler.org/archives/jsspamblock-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preventing Comment Spam with JavaScript bot detection</title>
		<link>http://paulbutler.org/archives/preventing-comment-spam-with-javascript-bot-detection/</link>
		<comments>http://paulbutler.org/archives/preventing-comment-spam-with-javascript-bot-detection/#comments</comments>
		<pubDate>Fri, 23 Mar 2007 02:08:47 +0000</pubDate>
		<dc:creator>Paul Butler</dc:creator>
				<category><![CDATA[JSSpamBlock]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.paulbutler.org/archives/preventing-comment-spam-with-javascript-bot-detection/</guid>
		<description><![CDATA[Update: Due to lack of time and interest (on my part), I am no longer maintaining JSSpamBlock or ImageScaler. I got my first comment spam on this blog the other day. It inspired me to try an idea I got &#8230; <a href="http://paulbutler.org/archives/preventing-comment-spam-with-javascript-bot-detection/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Due to lack of time and interest (on my part), I am no longer maintaining JSSpamBlock or ImageScaler.</strong></p>
<p>I got my first comment spam on this blog the other day. It inspired me to try an idea I got a few months back. My theory was that these bots aren&#8217;t very smart &#8211; they are programmed to post as many comments as possible on as many sites as possible, hoping that a handful of these comments would get past whatever system the blogger was using to prevent spam. I hypothesized that these bots did not understand JavaScript, and that by requiring some JavaScript to run in the browser I would be able to check with reasonable accuracy weather the comment was submitted by a human or a bot.</p>
<p>I wrote up a simple plugin to test the theory. I checked the logs to find that I was right. In fact, most of the bots that were spamming my blog did not even include the hidden element, which indicates that they were posting to the wp-comments-post.php file directly rather than accessing the form first. The bots that <em>did</em> access the form did not execute the JavaScript and therefore their comments were blocked. Since the trick only involves JavaScript, most users will not even notice the difference. Users without JavaScript simply need to follow the given instructions to copy a number to a text box in order to prove they are human. This is what users without JavaScript will see:</p>
<div id="attachment_97" class="wp-caption alignnone" style="width: 310px"><a href="http://test.paulbutler.org/wp-content/uploads/2009/04/nojs.png"><img src="http://test.paulbutler.org/wp-content/uploads/2007/03/nojs-300x257.png" alt="JSSpamBlock Screenshot" title="nojs" width="300" height="257" class="size-medium wp-image-97" /></a><p class="wp-caption-text">JSSpamBlock Screenshot</p></div>
<p>If you want to use JSSpamBlock on your blog, check out the <a href="http://wordpress.org/extend/plugins/jsspamblock/">JSSpamBlock project page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulbutler.org/archives/preventing-comment-spam-with-javascript-bot-detection/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

