sandywp / plugins / protect-uploads
Protect Uploads
Protect your uploads directory. Prevent browsing, password-protect files, add watermarks, and discourage right-click copying.
Ready in seconds.
v0.8.0 30,000+ installs WP 5.0+ PHP 7.4+

What you get inside
3 screens-
The Directory Protection tab, with the protection status of each uploads folder.
-
The Password Protection box on a media file's edit screen.
-
The Image Protection tab: password protection, watermark and right-click options.
About this plugin
The uploads directory is where the files of the WordPress media library are stored. Unfortunately, this directory is not protected by default: anyone who wants to see your whole library may be able to list it by going to http://yourwebsite/wp-content/uploads. This plugin hides the contents by adding an index.php file to your uploads directory and its subfolders, or by adding an .htaccess file that returns a 403 error (Forbidden Access).
- Depending on your server, the .htaccess option may be unavailable (Nginx does not read .htaccess files).
For more information, visit protectuploads.com.
Features:
- Directory Protection: Stop visitors from browsing your uploads directory (index.php or .htaccess 403). New year and month folders are protected as files are uploaded to them.
- Password Protection: Secure individual media files with passwords. Multiple passwords can be set for each file with custom labels. On Apache and LiteSpeed, the file’s direct URL also asks for the password, and repeated wrong guesses are rate limited.
- Image Watermarking: Add text watermarks to your uploaded images with customizable position, opacity, and font size. An untouched copy of each original is kept.
- Right-Click Protection: Discourages casual copying: disables the right-click menu and dragging on images. Determined visitors can still save images.
- Access Logging: See when password-protected files were downloaded, with which password and from which IP address.
- Site Health Checks: Built-in protection status tests with actionable advice.
Need more protection? Protect Uploads Pro adds Secure Send (emailed files released by a one-time code), a Client Portal, file requests, expiring and single-use passwords, role-based access, hotlink protection, logo and bulk watermarks, and download analytics.
Available languages:
- English
- Français
- Español
- Italian (thanks to Marko97)
Questions
- How do I add a password to a media file?
- Enable password protection in Media → Protect Uploads, on the Image Protection tab
- Open any media file’s edit screen (Media → Library, select the file, then “Edit more details”)
- Find the “Password Protection” box in the sidebar
- Add one or more passwords with descriptive labels
- How does watermarking work?
When enabled, watermarking automatically adds text to images when they are uploaded. You can customize:
– The watermark text (defaults to your site name)
– Position (top-left, top-right, bottom-left, bottom-right, center)
– Opacity (0-100%)
– Font size (small, medium, large)The watermark is applied to new uploads only. Animated GIFs are left unchanged.
- Does watermarking change my original images?
Yes: the watermark is drawn on the uploaded file itself, so every size WordPress generates from it carries the mark. Before drawing it, the plugin keeps an untouched copy of the original in wp-content/uploads/protect-uploads-originals/, in the same year/month folders. That folder is blocked from web access on Apache and LiteSpeed; on Nginx each copy has a random name so its URL cannot be guessed. Deleting a media file deletes its copy. Deleting the plugin keeps the copies, since they may be your only originals.
- Can I password protect only certain file types?
You choose files one by one: any media file, including PDFs, images, videos and documents, can have its own passwords.
- Does a password protect the file’s direct URL?
On Apache and LiteSpeed, yes: the plugin adds rules to the uploads .htaccess file that send the file’s direct URL to the password prompt. Nginx does not read .htaccess files, so there the password protects the links WordPress shows but the file itself stays reachable at its uploads URL. The password box on the media screen tells you when this applies, and Tools → Site Health warns you when protected files are reachable at their direct URL.
- Does this work on Nginx?
Partly. The index.php method, watermarking, right-click protection and the password prompt work on any server. Nginx does not read .htaccess files, so the .htaccess method is not available and a password-protected file can still be downloaded at its direct uploads URL by anyone who knows it. To block directory listing on Nginx, also make sure “autoindex” is off for your uploads directory.
- What does Pro add?
Protect Uploads Pro is a paid add-on that works alongside this plugin. It adds logo (image) watermarks, more watermark positions and bulk watermarking of existing images, expiring, single-use and limited-use passwords, expiring download links, role-based access to files, hotlink protection, download analytics, and a Protected Download block.
- What is removed when I delete the plugin?
Its settings, its password and access-log tables, the index.php files it created and the rules it added to .htaccess. Untouched copies of watermarked images are kept.
sandywp / also on the shelf
Try another plugin
Simple Link Directory – AI Powered
4.8 · 2K+ installs
AI Powered LINK DIRECTORY Plugin for WordPress to Curate Links for Web Directory. Link Management, Directory Listings, Link…
600+ installs
This plugin provides frontend listing functionality for [DirectoryPress - Directory Listing Plugin](https://designinvento.
DirectoryPress – Business Directory And Classified Ad Listing
3.0 · 600+ installs
DirectoryPress is most advanced and flexible directory listing plugin with wide range of features, You can build a business…
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.