=== Restricted Media === Contributors: Christian Gatti Tags: restricted media,restricted contents,hidden media,hide media,logged in media,private media,hide documents,private documents,hide,restricted Donate link: http://paypal.me/ChristianGatti Requires at least: 4.7 Tested up to: 5.5 Requires PHP: 7.x Stable tag: 1.2 License: GPL-2.0+ License URI: http://www.gnu.org/licenses/gpl-2.0.txt Prevent not logged users from downloading the elements of your media library that you decide to keep private. == Description == Install and activate **Restricted Media** plugin, then enter the WordPress Media Library, select an element and look at the right sidebar. You'll find two new fields: * a **checkbox** that let's you define if the selected element is to keep restricted or not * an **alternative URL** for the element to download When "Is restricted" checkbox is flagged, the selected element will get downloadable only to logged in users and only through the alternative URL (original URL will display a 404 page). When "Is restricted" checkbox is not flagged, media element will be downloadable for not logged in users too, through both the original and the alternative URL. So, what you need to do to keep a media private is to tick on "Is restricted", copy the Alternative URL provided and paste it on pages or posts where you want the let the media to be downloaded: if a not logged in user tries to download it, he will be redirect to homepage or to the page you have defined into "Restricted Media" plugin options. Since release 1.2 it is now possible to prevent access to selected pages, post and public custom posts by checking "Is restricted" into post editor. That's it! Simple, effective and safe. In association with [Main Entrance](https://wordpress.org/plugins/main-entrance/), Restricted Media helps you to build a restricted content page, for allowing to download documents only to logged in users. **Whatever is worth doing at all is worth doing well** == Installation == = Installation From Plugin Repository = * Into your WordPress plugin section, press "Add New" * Use "Restricted Media" as search term * Click on *Install Now* on *Restricted Media* into result page, then click on *Activate* * Set "Restricted Media" options by clicking on the link you find under the "Tools" menu = Manual Installation = * Download *Restricted Media* from https://wordpress.org/plugins/restricted-media * Into your WordPress plugin section, press "Add New" then press "Load Plugin" * Choose restricted-media.zip file from your local download folder * Press "Install Now" * Activate *Restricted Media* * Set "Restricted Media" options by clicking on the link you find under the "Tools" menu * Enjoy! == Screenshots == 1. Restricted Media setup page == Changelog == = 1.2 = * Now you can prevent access also to pages, post and public custom posts = 1.1 = * Some minor bug fix = 1.0 = * First full working release == Translations == * English: default language * Italian: entirely translated == Credits == * Very many thanks to [DkRemoto](https://www.dkremoto.it/) and [SviluppoEuropa](https://www.sviluppoeuropa.it/)!