Horje
Protects sensitive uploaded files so that only logged-in users can access them. The plugin depends on corresponding web server (e.g.

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 the Tips Below.

Start the Tips:

1. First Download "private-uploads.zip" Plugin to your Local Computer. (Click Download)

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

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "Private Uploads" folder is added on left sidemenu. Now, Click on "Private Uploads" folder.

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

8. Now you configure yourself oR Watch video tutorial below about Private Uploads Configurtions 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.


plugin, themthe, depends, corresponding, server, access, users, uploaded, sensitive, files,

Name

Reffered: https://wordpress.org/

Share on: