Skip to content

WordPress Plugin: Private Media (Make files in the WordPress media library private)

Notifications You must be signed in to change notification settings

mikeselander/Private-Media

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Private Media

Make files in the WordPress media library private. These are only accessible to logged in users.

Forked from mattheu/Private-Media. Thanks to mattheu for doing all the hard work on this to begin with.

Description

Private files are moved to a obsfucated location. Access can be completely restricted with .htaccess/nginx. URLs to private attachments are rewritten and the true location is not visible. Requests to these files hit a php script which authenticates the request and returns the file.

Non-private files are not affected.

Private attachments are not visible by default in the media library. Options are provided to filter results by private or public.

Access to Private files attachment pages in the front end is restricted. Will return 404 for logged out users.

Installation

  • Recursively git checkout git checkout --recursive git@github.com:mikeselander/Private-Media.git
  • Install the plugin
  • Edit an attachment, and check the private files option to set an attachment as private.

About

WordPress Plugin: Private Media (Make files in the WordPress media library private)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%