Linux 软件免费装
Banner图

Protect Uploads

开发者 alticreation
更新时间 2026年10月8日 06:45
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security watermark password protection directory listing private files

下载

0.5 0.5.1 0.1 0.4 0.5.2 0.3 0.2 0.6.0 0.7.0 0.7.1 0.8.0

详情介绍:

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). For more information, visit protectuploads.com. Features: 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:

安装:

  1. Upload protect-uploads folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure protection options in Media → Protect Uploads
Note: watermarking needs the PHP GD extension. The .htaccess method and the direct-URL password rules need a server that reads .htaccess files (Apache or LiteSpeed) and a writable uploads directory.

屏幕截图:

  • The Password Protection box on a media file's edit screen.
  • The Image Protection tab: password protection, watermark and right-click options.

升级注意事项:

0.8.0 Security release: password-protected files are now protected at their direct URL on Apache and LiteSpeed, and password guessing is rate limited. Update as soon as possible. 0.7.0 Adds Site Health checks for uploads protection and updates compatibility for WordPress 7.0. 0.6.0 Major update with new security features: watermarking, right-click protection, and password protection for individual media files.

常见问题:

How do I add a password to a media file?

  1. Enable password protection in Media → Protect Uploads, on the Image Protection tab
  2. Open any media file's edit screen (Media → Library, select the file, then "Edit more details")
  3. Find the "Password Protection" box in the sidebar
  4. 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.

更新日志:

0.8.0 Security Fixes Changes 0.7.1 0.7.0 0.6.0 0.5.2 0.4 0.3 0.2 0.1