<?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>Nathaniel Johnston &#187; ASP</title>
	<atom:link href="http://www.nathanieljohnston.com/index.php/tag/asp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nathanieljohnston.com</link>
	<description>A blog of recreational math and coding</description>
	<lastBuildDate>Tue, 18 May 2010 12:49:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Math CAPTCHAs in ASP</title>
		<link>http://www.nathanieljohnston.com/index.php/2008/10/math-captchas-in-asp/</link>
		<comments>http://www.nathanieljohnston.com/index.php/2008/10/math-captchas-in-asp/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 00:00:49 +0000</pubDate>
		<dc:creator>Nathaniel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.nathanieljohnston.com/?p=13</guid>
		<description><![CDATA[The idea of math-based CAPTCHAs has been around for a while, but it still hasn&#8217;t caught on much for some reason. Personally, I think the idea of a website asking you to enter the value of 7 + 8 is much less annoying than it asking you to squint and try to make out distorted [...]]]></description>
			<content:encoded><![CDATA[<p>The idea of math-based CAPTCHAs has been around for a while, but it still hasn&#8217;t caught on much for some reason. Personally, I think the idea of a website asking you to enter the value of 7 + 8 is much less annoying than it asking you to squint and try to make out distorted letters and numbers. Thus, I have put together four ASP math-based CAPTCHA scripts that are freely-available for download and can be used or modified however you see fit. I have outlined the pros and cons of each of the scripts to help you decide which (if any) of them is right for you. Note that all four of these scripts make use of the <a href="http://www.aspjpeg.com/" target="_new">AspJpeg component</a> though the scripts could easily be modified to work with other components or produce text output.</p>
<h3><span class="sub_header_text">Arithmetic CAPTCHA</span></h3>
<p>This is the most basic of the math CAPTCHA scripts &#8212; it asks the user to provide the answer to a simple arithmetic question (either addition, subtraction, multiplication, or division). The script could easily be modified to ask more complicated questions such as <span class="math_inline">&#8220;(12 / 4) + 7 = ?&#8221;</span> or <span class="math_inline">&#8220;3<sup>3</sup> = ?&#8221;.</span></p>
<p><strong>Features and Benefits:</strong></p>
<ul>
<li>You can select the difficulty of the questions that the CAPTCHA asks.</li>
</ul>
<p><strong>Downsides:</strong></p>
<ul>
<li>If the difficulty is low, most answers will be in the range 1 &#8211; 25, which means that a SPAMbot has a decent chance of randomly guessing the correct answer.</li>
</ul>
<p><strong>Example:</strong></p>
<p><img class="alignleft" style="margin-left: 24px;" src="http://www.nathanieljohnston.com/captcha/createArith.asp" alt="" width="425" height="23" /></p>
<p> </p>
<p><strong>Download:</strong></p>
<ul>
<li><a href="http://www.nathanieljohnston.com/wp-content/uploads/2008/10/arithmetic.zip">Download arithmetic.zip</a> (v1.00 — 5.18kB)</li>
<li><a href="http://www.nathanieljohnston.com/captcha/arithForm.html">Test it Online</a></li>
</ul>
<p> </p>
<h3><span class="sub_header_text">Dictionary CAPTCHA</span></h3>
<p>Quite a few websites now use CAPTCHAs that display words rather than random letters and numbers, and that is definitely a step in the right direction towards making CAPTCHAs less annoying. One step further though, is to use themed word lists that fit with the content of your website. This script does exactly that; it displays three words randomly selected from word lists that you create.</p>
<p><strong>Features and Benefits:</strong></p>
<ul>
<li>Won&#8217;t alienate users with no math knowledge.</li>
<li>Comes with enough math terms to generate over <span class="math_inline">25 000</span> unique CAPTCHAs.</li>
<li>Word lists can easily be customized to fit any website.</li>
</ul>
<p><strong>Downsides:</strong></p>
<ul>
<li>Defeated reasonably easily by OCR software (this could be fixed by adding lines through the image and so on).</li>
</ul>
<p><strong>Example:</strong></p>
<p><strong></strong><img class="alignleft" style="margin-left: 24px;" src="http://www.nathanieljohnston.com/captcha/createDict.asp" alt="" width="425" height="23" /></p>
<p> </p>
<p><strong>Download:</strong></p>
<ul>
<li><a href="http://www.nathanieljohnston.com/wp-content/uploads/2009/05/dictionary.zip">Download dictionary.zip</a> (v1.00 — 5.89kB)</li>
<li><a href="http://www.nathanieljohnston.com/captcha/dictForm.html">Test it Online</a></li>
</ul>
<p> </p>
<h3><span class="sub_header_text">Sequence CAPTCHA</span></h3>
<p>The Sequence CAPTCHA displays a sequence of numbers and asks the user to predict the next number in the sequence. The script generates one of three types of sequences: <a href="http://en.wikipedia.org/wiki/Arithmetic_sequence" target="_new">arithmetic</a>, <a href="http://en.wikipedia.org/wiki/Geometric_sequence" target="_new">geometric</a>, or <a href="http://en.wikipedia.org/wiki/Fibonacci_number" target="_new">Fibonacci-type</a>. However, you could easily edit the code to generate some really <a href="http://www.research.att.com/~njas/sequences/A049933" target="_new">nasty sequences</a> if you dislike the visitors of your website that much.</p>
<p><strong>Features and Benefits:</strong></p>
<ul>
<li>It&#8217;s reasonably immune to being broken by SPAMbots, unless someone spends a lot of time making a script specifically for your website.</li>
</ul>
<p><strong>Downsides:</strong></p>
<ul>
<li>Unless your visitors are very math-oriented, they will hate you.</li>
</ul>
<p><strong>Example:</strong></p>
<p><img class="alignleft" style="margin-left: 24px;" src="http://www.nathanieljohnston.com/captcha/createSequence.asp" alt="" width="425" height="23" /></p>
<p> </p>
<p><strong>Download:</strong></p>
<ul>
<li><a href="http://www.nathanieljohnston.com/wp-content/uploads/2008/10/sequence.zip">Download sequence.zip</a> (v1.00 — 5.41kB)</li>
<li><a href="http://www.nathanieljohnston.com/captcha/sequenceForm.html">Test it Online</a></li>
</ul>
<p> </p>
<h3><span class="sub_header_text">Word Arithmetic CAPTCHA</span></h3>
<p>This is a simple twist on the Arithmetic CAPTCHA that replaces the numbers by words and thus asks questions like <span class="math_inline">&#8220;Ten × Four = ?&#8221;.</span> The questions are slightly easier by default than the questions in the Arithmetic CAPTCHA script.</p>
<p><strong>Features and Benefits:</strong></p>
<ul>
<li>Accepts both numeric and word input from the user.</li>
<li>Quite resilient against being broken by SPAMbots.</li>
</ul>
<p><strong>Downsides:</strong></p>
<ul>
<li>As with the Arithmetic CAPTCHA, a random answer in the range 1 &#8211; 25 has a decent chance of being correct.</li>
<li>Some questions like &#8220;Forty Three &#8211; Twenty Seven&#8221; might scare away certain users. Then again, those may be precisely the types of users that you want to scare away.</li>
</ul>
<p><strong>Example:</strong></p>
<p><img class="alignleft" style="margin-left: 24px;" src="http://www.nathanieljohnston.com/captcha/createWordArith.asp" alt="" width="425" height="23" /></p>
<p> </p>
<p><strong>Download:</strong></p>
<ul>
<li><a href="http://www.nathanieljohnston.com/wp-content/uploads/2008/10/wordarithmetic.zip">Download wordarithmetic.zip</a> (v1.00 — 5.76kB)</li>
<li><a href="http://www.nathanieljohnston.com/captcha/wordArithForm.html">Test it Online</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nathanieljohnston.com/index.php/2008/10/math-captchas-in-asp/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
