Private Files

Private Files

from 0$

Private Files is a WP Plugin Package from the Open Source WP Plugins range Private Files makes sure only logged in users can see images and file attachments.

For more information about a tailored WP Plugin Package like Private Files please contact us directly.

There are several plugins to make a blog private, making it a good tool for basic collaboration / group ware. However file attachments / images have still been visible too the public, until now.

Private files acts as a proxy, making sure users are logged in before they can download any files. The nice thing about is, it doesn’t modify the current uploads at all, doesn’t store files in a different place, so if you want to stop using it, all links to files stay the same, so you don’t need to redo anything.

How this plugin works

1) It requires mod_rewrite/php running in apache, probably on unix/linux, although windows may work.

2) It requires wordpress to be handling all url requests via a .htaccess in your blog root, and for your uploads to be a subdirectory of the your blog root and you’re not using the default permalinks (ie. not http://www.myblog.com/?p=123)

3) An additional .htaccess file is placed in your uploads directory with the following content:

RewriteEngine On

RewriteBase /wordpress/wp-content/uploads

RewriteRule . /wordpress/afilethatshouldnotexist.txt

Options -Indexes 

4) All requests for files within your upload are direct to a file that doesn’t exist

5) WordPress handles this as a 404 error

6) This plugin has a hook which intercepts the 404, and returns the file if the user is logged in.

7) If you want to force user login please try Angsuman’s Authenticated WordPress Plugin (http://blog.taragana.com/index.php/archive/angsumans-authenticated-wordpress-plugin-password-protection-for-your-wordpress-blog/) or Allow Categories (http://jameslow.com/2007/12/02/allow-categories/) to permission your blog.

8) There’s a small chance that the protection detection might be wrong, if so reprotect your files.

9) If you want to stop using the plugin, unprotect it, or delete the .htaccess file with your uploads directory.

More information and the latest version can be found here:
http://jameslow.com/2008/01/28/private-files/

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Private Files

typePlugin
version0.40
descriptionPrivate Files makes sure only logged in users can see images and file attachments.