Secure the admin login page with Turnstile by Cloudflare.
This plugin was an initial fork of SophiaAtkinson's yourls-cf-turnstile but due to critical issues in the original, it was completely rewritten and released independently. Credit to Sophia for the initial inspiration.
Adds Cloudflare Turnstile to the YOURLS Admin login.
- Adds a Cloudflare Turnstile widget to the login form
- Option to show or hide the widget (set with Cloudflare)
- Disables the login button until a successful validation
- Adds a 'not-allowed' cursor to the login button while disabled
- In
/user/plugins, create a new folder namedyourls-cf-turnstile-v2. - Drop these files in that directory.
- Change
CF_TS_SITE_KEYandCF_TS_SECRET_KEYto the keys found on the Turnstile Page - Go to the Plugins administration page ( eg
http://sho.rt/admin/plugins.php) and activate the plugin.