问题
I want to add the most popular captcha client on my site - reCaptcha. But I didn't found any examples or tutorials in internet... Maybe somebody knows how to do it?
I'll be very appreciate for any help!!!
回答1:
There is full API documentation available for reCATPCHA here. It probably has sample code, too.
I found this by going to the reCAPTCHA website and clicking on the FAQ link.
And of course, you sign up for the service here. That's pretty obvious from the home page.
回答2:
You need to do two things:
1) Display the widget on your site. Copy the html and javascript code on this reCaptcha documentation page.
2) Validate the user's response. You can use the python client for this. There is an example on how to use this in this stackoverflow post.
Good luck!
来源:https://stackoverflow.com/questions/9223939/pyramid-with-recaptcha-how-to-implement