No Captcha ReCaptcha 2.0 with ASP Classic is easy to set up and use with this code to stop bots and minimize spammers. Google's new No Captcha ReCaptcha 2.0 with ASP Classic integration will allow everyone running ASP Classic on their websites to add this new tool to their arsenal to help combat bots and slow down spammers. Shahid Shaikh from codeforgeek.com« (Article is no longer available.) His response got me pointed in the right direction.
Live Lessons Example - ASP Classic No Captcha ReCaptcha 2.0
The AJAX script used in the original example is no longer functional in newer browsers. We switched to a jQuery method, which works beautifully!
You will need the new reCAPTCHA 2.0 Site Key. Go here: https://www.google.com/recaptcha/admin«. Add a new Site Key for your website. For local testing, you will have to test with 127.0.0.1/site.asp It will not work with a static IP Address or with localhost anymore.
<%
strname = request.Form("name")
captcha = request.Form("g-recaptcha-response")
if strname = ""thenresponse.Write"Please provide your name."'Next, we are going to challenge the reCAPTCHA, to make sure that it is not blank,
'and there is NO way around this. If it is not blank, then we send them a message.
elseif captcha=""thenresponse.Write"You have not completed the <strong>reCAPTCHA</strong>. Please click the blank box and enter the sequence of characters. Thank You"else' If the user has completed the reCAPTCHA, we send a message letting them know.
response.Write"Thank you for trying out the
<strong>ASP Classic / Jquery reCAPTCHA 2.0</strong> demo."end if
%>