reCAPTCHA Classic ASP Implementation
Recently had to work with a new CAPTCHA program called reCAPTCHA. It was fairly easy to implement with Classic ASP co
de but had some problems figuring out some parts of it.
First off what is CAPTCHA? It stands for Completely Automated Public Turing test to tell Computers and Humans Apart. CAPTCHA is basically an image of letters and numbers that is randomly generated. The image makes it difficult for spam bots to read. So they can be used as a way to verify if a computer is submitting a form on a website or an actual person. So we can eliminate all of that pesky spam!
The reCAPTCHA software is free to use and also helps digitize books when it is being used. Check out their site for more information on that.
I needed to implement this software on a site that runs Classic ASP. They did not have a specific example on how to do this but I was able to find an example done from a very kind person Andre F. Bruton on the discussion boards. Click here to go and view the example.
Update it appears that the above site has gone down so here is a link to the example that was offered by that site.
The example worked great I just had to insert the code into my pages and I was off and running in no time. However on a few of the pages I was running them in SSL which when using the reCAPTCHA software on those page brought up some secure errors. Through searching around the internet and trying various things I found out that reCAPTCHA has a secure server to send to so you will no longer get the security errors. That URL is https://api-secure.recaptcha.net.
Here is an example of where you need to put it in your code.
function recaptcha_challenge_writer(publickey)
recaptcha_challenge_writer = "<script type=""text/javascript"">" & _
"var RecaptchaOptions = {" & _
" theme : ‘white’," & _
" tabindex : 0" & _
"};" & _
"</script>" & _
"<script type=""text/javascript"" src=""https://api-secure.recaptcha.net/challenge?k=" & publickey & """></script>" & _
"<noscript>" & _
"<iframe src=""http://api.recaptcha.net/noscript?k=" & publickey & """ frameborder=""1""></iframe><br>" & _
"<textarea name=""recaptcha_challenge_field"" rows=""3"" cols=""40""></textarea>" & _
"<input type=""hidden"" name=""recaptcha_response_field"" value=""manual_challenge"">" & _
"</noscript>"
end function
View Similar Posts
- Hello World of Code!
- Replace line breaks with BR tags
- Link Building with Blog Directories
- How to use the Union statement with a dynamic order by





April 21st, 2008 at 3:48 pm
The Andre Burton link for the example code no longer works. Can you post a new link?
April 21st, 2008 at 4:01 pm
Luckily I saved the zip file that was offered on that page and have made it available for download.