WP Manifestindependent plugin directory
manifest / content / gated-resources

Gated Resources WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Gated PDF resource library for Bartec Municipal — HubSpot lead capture, Cloudflare Turnstile, 30-day global unlock, protected file delivery.

★ 0stars
14release downloads
v0.2.6latest · 3mo ago

Install

Download gated-resources.zip From the v0.2.6 release on GitHub, Jul 3, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/browndog-agency/gated-resources/releases/download/v0.2.6/gated-resources.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

WordPress plugin: a gated PDF resource library for Bartec Municipal. Visitors complete a short form once to unlock the whole library for 30 days; leads are sent to HubSpot, with Cloudflare Turnstile anti-spam. PDFs are served through a protected endpoint.

Requirements

  • WordPress 6.0+, PHP 7.4+
  • For PDF cover thumbnails: Imagick PHP extension + Ghostscript (optional; falls back to featured image, then a placeholder)

Setup

  1. Install & activate the plugin.
  2. Resources → Settings: enter HubSpot Portal ID + Form GUID, Turnstile site + secret keys, privacy policy URL, consent label + HubSpot subscription ID, unlock duration.
  3. Add Resources (title, PDF upload, optional description). Optionally set a featured image as a thumbnail fallback.
  4. Show the grid at /resources/ or with the shortcode: [gated_resources count="9" columns="3"].
  5. To QA the gate before HubSpot is connected, enable Test Mode (Resources → Settings) — leads are NOT recorded while it is on, and a site-wide admin warning shows. Turn off before go-live.

nginx note (protected files)

The protected directory ships an Apache .htaccess deny rule. On nginx, add:

location ~* /wp-content/uploads/gated-resources/ { deny all; return 403; }

Files also live under an unguessable hashed path as defence in depth, and are only served through the gated PHP endpoint (?gr_file=ID).

Varnish / full-page caching note (required on Cloudways)

The unlock is a gr_access cookie. Cache layers that strip unrecognised cookies from requests (e.g. Cloudways Varnish) will remove it before PHP runs, so the protected endpoint 403s even for unlocked visitors. Add a cookie exclusion for gr_access (Cloudways: Application → Varnish Settings), and purge the cache after changing it.

Updating

This plugin self-updates from Browndog-Agency/gated-resources. To release:

  1. Bump Version: in gated-resources.php.
  2. git tag vX.Y.Z && git push --tags
  3. Publish a GitHub Release for that tag. WordPress will then show a one-click update.

Development

composer install
composer test

Releases

13 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v0.2.6 latest
Jul 3, 2026 3mo ago
gated-resources.zip
4
Jun 17, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
2
Jun 10, 2026 4mo ago
gated-resources.zip
0
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
gated-resources.zip
1
Jun 10, 2026 4mo ago
tag only
—
Jun 10, 2026 4mo ago
tag only
—
A grade

Security

Gated Resources 0.2.6 · audited by WP Registry

No security issues found.

Audited release
0.2.6
Findings
none
Worst severity
—
Content hash
2f6560faa2eb0b7b48b03aee…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.