CAPTCHA for my asp script

I need a clean simple solution to incoeporate CAPTCHAs in an asp form
robrodpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I have made my own captcha's but I see recaptcha has some sample code in classic asp https://developers.google.com/recaptcha/docs/asp

It is very straight forward, Copy the code they provide


You can also do something simple
form.asp
<%

Dim max,min
max=3
min=1
Randomize
session("captcha")=(Int((max-min+1)*Rnd+min))

%>
<div><%=session("errMessage")%></div>
<form method="post" action="test.asp">
Select this number below: <%=session("captcha")%>
 <select name="test">
  <option value="1">One</option>
  <option value="2">two</option>
  <option value="3">three</option>
  </select>
  <button type="submit">Go!</button>


</form>
<%
session("errMessage")=""
%>

Open in new window


test.asp
<%
if cstr(request.form("test"))=cstr(session("captcha")) then
	'process the rest of the form'
else
    session("errMessage")="Please select the secret number"
	response.redirect("form.asp")
end if

%>

Open in new window

0
robrodpAuthor Commented:
The first solution is more CAPTCHA like
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
One of the problems with captcha's is they are not always easy to read.  And of course the harder to read, the harder to break but also harder on users.  I mostly work on smaller sites where the type of spam is from automated bots.  I find simple things like the random number or a random word from a dictionary or "what is one plus two" where the numbers are randomly generated do just fine and are easier for people to use.
0
robrodpAuthor Commented:
Thx padas... I understand  but my client wants a "hard to read" solution... so...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.