Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Google's reCAPTCHA #4

jjweston opened this issue Jun 4, 2019 · 0 comments


Copy link

commented Jun 4, 2019


Spam episodes have been a problem on the stories on my web site. To solve the problem I've started using Google's reCAPTCHA to prevent bots from creating episodes. I'm creating this issue to remind me to add official support for Google's reCAPTCHA in Extend-A-Story.

Using Google's reCAPATCHA on Version 2.2.1

For those who are interested, I'm providing instructions for how to use Google's reCAPTCHA with version 2.2.1 of Extend-A-Story.

First, register your web site on Google's reCAPTCHA site:

I'm using a V2 checkbox for the stories on my site. These instructions assume you are using a V2 checkbox as well. There are other options available, but you'll have to modify these instructions if you go with a different option.

Next, make changes to your create.php file on your story to use Google's reCAPTCHA. I've attached an updated version of create.php called create-captcha-2.2.1-modified.txt that contains the changes to support Google's reCAPTCHA. In case you've previously modified create.php on your story, I've also attached a patch file called create-captcha-2.2.1-patch.txt which you can use to add support for Google's reCAPTCHA to your modified version. In either case, you'll need to copy/paste your site key and secret key that is given to you by Google (look for the lines marked with TODO).

Once complete, anyone attempting to create a episode will be forced to pass Google's reCAPTCHA before they can save the episode. This applies whether or not they are logged in as a moderator or administrator. Google's reCAPTCHA is not used when editing episodes.

Attached Files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.