Skip to content

Instantly share code, notes, and snippets.

@earthtrip
Created December 19, 2013 19:48
Show Gist options
  • Save earthtrip/8045070 to your computer and use it in GitHub Desktop.
Save earthtrip/8045070 to your computer and use it in GitHub Desktop.
Simple Recaptcha validation HTML form fragment when using Google App Engine (GAE), Webapp2 and WTForms.
<label>Verify you're human:</label>
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=YOUR_RECAPTCH_PUBLIC_KEY_HERE">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=YOUR_RECAPTCH_PUBLIC_KEY_HERE" height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
@earthtrip
Copy link
Author

Here's the controller code for a Google App Engine, WebApp2, WTForms application:

https://gist.github.com/mengelhart/8045030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment