Wampum - Protected Media
Attach PDFs to pages/posts/cpts that can only be viewed from the pages they are attached to. Files are protected with time-limited tokens. Requires Genesis for file display and ACF Pro for the files metabox.
by Mike Hemberger, BizBudding · github.com/bizbudding/wampum-protected-media · website
★ 2stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/bizbudding/wampum-protected-media/archive/refs/heads/master.zipDeclares an update source (bizbudding/wampum-protected-media), so updates arrive through the plugin's own updater.
From the readme
da3eeae (initial commit to get back up and running)
Wampum - Protected Media
Attach PDFs and other files to pages/posts/cpts that can only be viewed from the pages they are attached to. Files are protected with time-limited tokens and cannot be directly accessed or indexed by search engines. Requires Genesis for file display and ACF Pro for the files metabox.
Stashed changes
Features
- Time-limited token-based protection (default: 2 hours)
- Prevents direct file access
- Prevents Google indexing with X-Robots-Tag: noindex header
- PDFs display inline in browser
- Other files download automatically
Nginx Configuration
To prevent direct access to protected files, add the following location block to your Nginx server configuration:
This ensures that files can only be accessed through the protected download handler with valid tokens.
Adding to Nginx Config
1. Open your Nginx configuration file (usually /etc/nginx/sites-available/your-site or /etc/nginx/nginx.conf)
2. Add the location block above within your server block
3. Test the configuration: sudo nginx -t
4. Reload Nginx: sudo systemctl reload nginx or sudo service nginx reload
Filters
wampumprotectedmediaposttypes
Filt
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.5.0 | Apr 9, 2026 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.