Home Plugins recaptcha protected downloads
reCaptcha Protected Downloads logo

reCaptcha Protected Downloads

by DevriX on WordPress.org

Protect your downloads from bots and spiders with a shortcode and Google's no-captcha reCaptcha

(1)
reCaptcha popup after clicking download link

reCaptcha popup after clicking download link

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 here.

You can also download WordPress following this URL

Which is parsed as follows:

Hello! This page is dynamically generated with my plugin called Content Generator which you can download from here.

You can also download WordPress following this URL

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!

Active installations10+
Weekly downloads
12-20.00%
Version0.1
Last updated2/15/2017
WordPress version4.7.2
Tested up to4.7.29
Tags
anti-spamcontentdownloadshortcodespam