Descrizione
Use the shortcode `[recaptcha-protected-download]` to wrap any direct download link that you’d like reCaptcha to process.
`[recaptcha-protected-download]https://example.com/download.zip[/recaptcha-protected-download]`
Example
Here’s my `hello world` post HTML:
Hello! This page is dynamically generated with my plugin called Content Generator which you can download from <a href="[recaptcha-protected-download]https://my-cdn.tld/static/content-generator.zip[/recaptcha-protected-download]">here</a>. You can also download WordPress following <a href="[recaptcha-protected-download]https://wordpress.org/latest.zip[/recaptcha-protected-download]">this URL</a>
Which is parsed as follows:
Hello! This page is dynamically generated with my plugin called Content Generator which you can download from <a href="#rcpdl=371bce9996c0afc711648c2c4f3d5c97">here</a>. You can also download WordPress following <a href="#rcpdl=7039e773658ed3c70d50e791ed4940fd">this URL</a>
About
This plugin opts to generate fake links (anchors) controlled with JavaScript to open up a modal once clicked to opt users to complete the anti-spam test with Google reCaptcha.
Once a user successfully submits a test, an AJAX callback will then verify the response and parse the download.
`md5` is used to hash the download links and fetch them later once a user submits a test.
You must provide your Google reCaptcha credentials which you can obtain from this page
Once you activate the plugin, you should now navigate to “Settings” > “reCaptcha Downlaods” (or “Options” > “reCaptcha Downlaods” for network activated plugin) and add your Google reCaptcha credentials (public and private keys) which you can obtain from https://www.google.com/recaptcha/admin
The development version of this plugin is hosted on Github, feel free to fork it, contribute and improve it, or start a new issue if you want to report something like an unusual bug.
Here’s the Github repo: https://github.com/elhardoum/recaptcha-protected-downloads
Thank you!
Screenshot
Installazione
- Visit ‘Plugins > Add New’
- Search for ‘reCaptcha Protected Downloads’
- Activate reCaptcha Protected Downloads from your Plugins page. You will have to activate it for the whole network.
Once you activate the plugin, you should now navigate to “Settings” > “reCaptcha Downlaods” (or “Options” > “reCaptcha Downlaods” for network activated plugin) and add your Google reCaptcha credentials (public and private keys) which you can obtain from https://www.google.com/recaptcha/admin
Recensioni
Contributi e sviluppo
“reCaptcha Protected Downloads” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
CollaboratoriTraduci “reCaptcha Protected Downloads” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.
Changelog (registro delle modifiche)
0.1
- Initial stable release.