N
newbiegalore
Hi Everyone,
I am designing a simple site, the index page has a form,with 2 input
boxes. Once the user presses submit, a cgi script myfirstcgi.cgi is
called and output is displayed. Everything is fine! Now I want that
the service I am offering should not be accessible to web bots, and so
I want to use captchas to achieve this. There seem to be a some
captcha code in PHP, Perl on the net, but I am partial towards bash/
awk/sed kinda coding! (I know it sounds weird!)
I looked up http://www.captcha.biz/captcha-explained.html and used it
on my site. The problem is that in my form if I use action=/
testcaptcha/capthcha-page.php then this code ends up at an html page
saying you entered the captcha correctly. I want the end page to
display the result of my cgi script and so I changed the "pointer" in
the php code to my cgi code, so that if the user enters the letters
right, the cgi code will run. However, this screws up the QUERY_STRING
being passed to the cgi code and no output is generated.
One solution could be that I generate 10K gifs using Imagemagick (text-
name of the image. But surely there must be a better solution!
Thanks,
-A
I am designing a simple site, the index page has a form,with 2 input
boxes. Once the user presses submit, a cgi script myfirstcgi.cgi is
called and output is displayed. Everything is fine! Now I want that
the service I am offering should not be accessible to web bots, and so
I want to use captchas to achieve this. There seem to be a some
captcha code in PHP, Perl on the net, but I am partial towards bash/
awk/sed kinda coding! (I know it sounds weird!)
I looked up http://www.captcha.biz/captcha-explained.html and used it
on my site. The problem is that in my form if I use action=/
testcaptcha/capthcha-page.php then this code ends up at an html page
saying you entered the captcha correctly. I want the end page to
display the result of my cgi script and so I changed the "pointer" in
the php code to my cgi code, so that if the user enters the letters
right, the cgi code will run. However, this screws up the QUERY_STRING
being passed to the cgi code and no output is generated.
One solution could be that I generate 10K gifs using Imagemagick (text-
and checks if the user entered the right letters which would be theimage) etc. and then the cgi randomly calls up one of these images
name of the image. But surely there must be a better solution!
Thanks,
-A