PTP Private Media
Protect WordPress media files with access controls, secure delivery, temporary share links, and SEO indexing protection.
Use with caution
PTP Private Media works, but test it on a staging site before relying on it in 2026. It runs on 20+ sites, is rated 1/5 and was last updated 2 weeks ago, and scores 51/100 on our health check.
- Actively developed — last update 2 weeks ago
- Tested with the latest WordPress (7.1)
- Small user base (20+ active installs)
- Very few reviews so far
Daily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where PTP Private Media stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| file access control | >100 |
| media library | >100 |
| media protection | >100 |
| private media | #30 |
| secure files | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 1 from 1 reviews
About PTP Private Media
From the official readme · v1.2.1Description
PTP Private Media gives you full control over who can access your WordPress media files. Stop search engines, bots, and unauthorised visitors from downloading your protected images, PDFs, videos, or documents.
Author: Umang Prajapati | WordPress Profile | GitHub
Core Features
🔐 Real Server-Level Media Protection
* Automatically writes per-file .htaccess rules to block direct /wp-content/uploads/ access to every protected file and all its generated thumbnail sizes
* Built-in Direct File Protection Self-Test on the Dashboard verifies live whether direct access is blocked
* Public files continue to be served natively by Apache with zero PHP overhead
* Copy-paste Nginx configuration rules provided in the Dashboard
👥 Fine-Grained Access Control
Set a protection level for every file in the Media Library or Block Editor:
- Public – standard WordPress behaviour
- Logged-in users only – any authenticated user
- Specific roles – choose from all registered WordPress roles (Admin, Editor, Subscriber, etc.)
- Password protected – custom password per file
- Restrict to posts/pages – only accessible when referred from specific content
🔗 Permanent Embedded URLs + Optional Temporary Share Links
* Embedded media in posts, pages, and blocks uses a permanent dynamic endpoint (example.com/restricted-media/{file-id}/) that never expires and checks user permissions live on every request
* Optional Temporary Share Links (example.com/restricted-media/{file-id}/{token}/) let you generate HMAC-SHA256 signed, time-limited links when sharing externally
* Hotlink protection prevents embedding on external domains
* Optional IP-address binding for temporary share tokens
🚫 SEO & Indexing Protection
* X-Robots-Tag: noindex, nofollow header on all protected file requests
* Optional Disallow entries in robots.txt for the uploads directory
* Disable and redirect WordPress media attachment pages
* wp_robots API integration for attachment pages
📂 Seamless Media Library & Block Editor Integration
* Single, unified Protection Settings panel in the Media Library Grid popup, Block Editor sidebar, and Classic Attachment Edit screen
* Auto-saves settings when changing Access Type or Allowed Roles
* Protection status column (Protected / Public / Password / Role) in list view
* Bulk Actions: protect multiple files, change access rules, make public
⚡ Performance
* Full HTTP Range (206 Partial Content) streaming support for HTML5 video and audio seeking of any size
* Chunked streaming for large files above configurable threshold
* Object cache support with cache invalidation on settings change
* Scheduled cleanup of expired tokens and old access logs
Installation
- Upload the
ptp-private-mediafolder to/wp-content/plugins/. - Activate the plugin through the Plugins screen.
- Visit PTP Private Media → Dashboard to confirm Direct File Protection Status shows Active.
- Open any media file in the Media Library or Block Editor and set its protection level.
- If using Nginx, add the server block rules shown in the Dashboard.
- Re-save your Permalink Settings (
Settings → Permalinks) if protected URLs return 404.
Changelog
Major reliability update: fixes expiring embedded media links (now permanent dynamic URLs), adds real per-file .htaccess blocking for /uploads/ with a live Dashboard self-test, fixes duplicate/cropped Media Modal UI, restores Protection Settings in the Media Library Grid popup, and adds auto-save with live Block Editor video support. Safe to update directly from 1.2.0.
1.2.1
- Fix: Embedded protected media no longer expires after 1 hour. Protected attachments now use a permanent dynamic endpoint (
/restricted-media/{id}/) that evaluates live user permissions on every request, while expiring HMAC tokens remain available as optional Temporary Share Links. - Fix: Direct
/wp-content/uploads/access to protected files (and all generated thumbnail sub-sizes + original unscaled images) is now genuinely blocked via per-file.htaccessRewriteRulerules synced automatically on save, bulk action, and deletion. - Feature: Added an automated Direct File Protection Self-Test on the Dashboard (with a one-click Re-test button) that verifies whether direct
/uploads/access returns HTTP 403 and displays exact Nginx/Apache rules if server configuration is required. - Fix: Media Library Grid popup (
upload.php?item=ID) now properly displays the Protection Settings panel by extendingwp.media.view.Attachment.Details.TwoColumnin addition toAttachment.Details. - Fix: Eliminated duplicate Protection Settings panels in the Block Editor / Media Modal sidebar by removing the redundant
.compat-field-urma_protectionrow once the JS panel mounts. - Fix: Fixed cropped Generate button and hidden Copy button in narrow Media Modal sidebars by using a responsive stacked layout inside
.urma-secure-url-section. - Fix: Editing Access Type or Allowed Roles in the Block Editor now auto-saves and updates the Backbone attachment model URL live without breaking embedded Video/Image blocks.
- Fix: Enabled HTTP Range (
206 Partial Content) support whenever aRangeheader is sent, ensuring HTML5<video>and<audio>playback and seeking work reliably for files of any size. - Fix: Preserved existing password hash when updating a password-protected attachment with a blank password field.
- Fix: Default Protection setting (
urma_default_protection) is now automatically applied to newly uploaded attachments.
1.2.0
- Compatibility: Tested with WordPress 7.1.4 and PHP 8.4.
- Fix: Multi-role protection settings were silently dropped to a single role when saving from the Attachment Details dialog (media modal grid view).
- Fix: Protection settings edited in the Block editor “Open Media Library” panel were never saved.
- Fix: Block editor media panel did not pre-populate the current role selections when re-opening an attachment.
- Fix: Secure URL section (Generate / Copy / Revoke) was missing from the media modal popup and Block editor media sidebar.
- Fix: Rate limit on the secure URL generation AJAX endpoint raised from 30 to 120 requests per minute.
1.1.0
- Compatibility: Requires PHP 8.0+ and WordPress 6.1+.
- Fix: Access log retention cron now auto-purges logs based on retention period.
- Fix: Password form POST now verifies the nonce before processing.
- Security: Session identifiers for anonymous password access use
random_bytes(16).
1.0.0
- Initial release.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
FAQ
PTP Private Media: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is PTP Private Media free?
Yes. PTP Private Media is free to download and use from the official WordPress.org plugin directory.
Is PTP Private Media safe to use in 2026?
PTP Private Media works, but test it on a staging site before relying on it in 2026. It runs on 20+ sites, is rated 1/5 and was last updated 2 weeks ago, and scores 51/100 on our health check.
How many websites use PTP Private Media?
PTP Private Media is active on 20+ WordPress websites and has been downloaded 789 times since it launched in June 2026. It was downloaded 331 times in the last 30 days.
Does PTP Private Media work with WordPress 7.1?
Yes. The developer has tested PTP Private Media up to WordPress 7.1.5, the latest release. It requires WordPress 6.1 or newer.
What PHP version does PTP Private Media need?
PTP Private Media requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was PTP Private Media last updated?
The latest version, 1.2.1, was released on November 22, 2026 (2 weeks ago).
Who makes PTP Private Media?
PTP Private Media is developed and maintained by Umang Prajapati.
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
