Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

spbriggs/recaptcha-plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 11 commits ahead, 8 commits behind YOURLS:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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/

About

YOURLS plugin implementing reCaptcha for unauthenticated users

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%