Skip to content
This repository has been archived by the owner. It is now read-only.
YOURLS plugin implementing reCaptcha for unauthenticated users
PHP
Branch: master
Clone or download
Pull request Compare This branch is 11 commits ahead, 3 commits behind YOURLS:master.
Latest commit cadfe1a Jul 29, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Minor documentation fixes Jul 28, 2015
plugin.php Update version number Jul 28, 2015
sample-public-index.php Minor documentation fixes Jul 28, 2015
solvemedialib.php

README.md

reCaptcha

Plugin for YOURLS v1.7 (possibly earlier, not tested) adding reCaptcha or SolveMedia captcha to public page

Description

Spam protection for public YOURLS installations. Any unauthenticated user is required to pass a reCaptcha or SolveMedia captcha in order to create a shortlink.

Installation

  1. In /user/plugins, create a new folder named reCaptcha.
  2. Drop the plugin.php file in that directory.
  3. Go to the Plugins administration page ( eg http://sho.rt/admin/plugins.php ) and activate the plugin.

4a. (reCaptcha) Sign up for a reCaptcha key at Google 4b. (SolveMedia) Sign up for a Solve Media key at Solve Media 5. On the Plugins administration page > reCapture Settings paste in your reCaptcha keys 6. 6a. (reCaptcha) In your public front front page PHP file paste the following code where you want the reCaptcha displayed spb_recaptcha_add_Captcha_Script(); 6b. (SolveMedia) In your public front front page PHP file paste the following code where you want the reCaptcha displayed spb_recaptcha_add_SolveMedia_Script();

Notes

There is a sample public front page PHP file in the repository. The captcha will only show for non-logged in users. Log out of admin or open a private browsing session to check that it works.

License

Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) https://creativecommons.org/licenses/by-sa/4.0/

You can’t perform that action at this time.