Banner for Private Uploads
Protects sensitive uploaded files so that only logged-in users can access them. The plugin depends on corresponding web server (e.g. Wordpress Tutorial
Noted That:
  • To install correctly this private-uploads.zip .
  • Fisrt Download the private-uploads.zip to your computer
  • Extract/Open private-uploads.zip to Your Computer.
  • Then, Find readme.txt file inside private-uploads.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " private-uploads.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Private Uploads

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Private Uploads

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Private Uploads

Step-5 : Now, Browse " private-uploads.zip " Downloaded plugin from your computer, Where you downloaded " private-uploads.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Private Uploads

Step-6 : Now, Click on " Active Plugin "

Activate Private Uploads

Step-7 : Then, See left Side Menu. " Private Uploads " folder is added on left Side Menu. Now, Click on " Private Uploads " folder.

Noted that: If you do not see " Private Uploads " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Private Uploads Configurations and Settings or How to work " Private Uploads " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Private Uploads " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Private Uploads
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Install the plugin in the usual way and activate it.

Move your private uploads (PDFs, images, or whatever) into a separate sub-folder within the WordPress uploads folder (usually /wp-content/uploads). One way of creating such a folder and moving the private files is by means of the Media Organiser plugin.

Then configure your web server as follows:

Nginx

Include a line like this in the server section of the Nginx configuration:


rewrite ^/wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 break; 

The folder name ‘private’ can be anything you like — it just has to match the name of the folder where your private files are kept, and be enclosed in parentheses in the rewrite statement.

More than one private folder can be configured by adding more lines of the same form, for example:


rewrite ^/wp-content/uploads/(2017/secure)/(.*)$ /?pucd-folder=$1&pucd-file=$2 break; 

Apache

Enchiridion has supplied the following configuration for Apache. Thank you.

Here’s an equivalent rule for Apache to add to your existing rules:


RewriteRule ^wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 [L]

Or you can copy/paste this entire block into your .htaccess file. Add before the # BEGIN WordPress block:



RewriteEngine On
RewriteBase /
# Block unauthenticated user access to the /private/ uploads folder
RewriteRule ^wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 [L]

Other web servers

are left as an exercise for the reader.


Name