=== Restricted Media, Pages and Posts === 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.7 Requires PHP: 7.x Stable tag: 1.8 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 == ### Restricted Media, Pages and Posts will be dismissed soon: so please, download our new [NutsForPress Restricted Contents](https://wordpress.org/plugins/nutsforpress-restricted-contents/) and find there all the Restricted Media, Pages and Posts features Install and activate **Restricted Media, Pages and Posts** plugin and you can easily mark as restricted: images, pdf file, zip files, pages, posts and custom posts, deciding to grant access to a specific role or to any logged-in users. Mark as restricted your **media** by the checkbox that you'll find at the right sidebar of the selected element, copy and paste the provided alternative URL to link your media into pages and posts. 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 be protected through a htaccess rule). When "Is restricted" checkbox is not flagged, the media element will be downloadable for anyone, through both the original and the alternative URL. Mark as restricted your **pages and posts** too by the checkbox that you'll find at the right sidebar of the post/page editor. If a not logged-in user tries to acces to a restricted content, he will be redirected to homepage or to the page you have defined into "Restricted Media, Pages and Posts" plugin options.  Furthermore, you can grant access to media, post or pages only to a specific role or to every logged-in users: chose from the dropdown menu, just after the "is restricted" checkbox. That's it! Simple, effective and safe. In association with [Main Entrance](https://wordpress.org/plugins/main-entrance/), Restricted Media, Pages and Posts 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, Pages and Posts" as search term * Click on *Install Now* on *Restricted Media, Pages and Posts* into result page, then click on *Activate* * Set "Restricted Media, Pages and Posts" options by clicking on the link you find under the "Tools" menu = Manual Installation = * Download *Restricted Media, Pages and Posts* 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, Pages and Posts* * Set "Restricted Media, Pages and Posts" options by clicking on the link you find under the "Tools" menu * Enjoy! == Screenshots == 1. Restricted Media, Pages and Posts setup page == Changelog == = 1.8 = * Dismissing "Restricted Media, Pages and Posts" for the new "NutsForPress Restricted Contents", please download it from plugin repository = 1.7.1 = * Fixed a bug that prevented from displaying restricted media by loggedin users = 1.7 = * Now it is possible to prevent archive pages to be browsed when they contain a restricted element into the loop = 1.6 = * Fixed a bug that prevented from editing content through Elemetor editor when the content is marked as restricted * Introduced a fallback function for renaming back images marked as restricted with version earlier than 1.3 * Changed the plugin name from Restricted Media to Restricted Media, Pages and Posts = 1.5 = * New version for a better compliance with WPML: update plugin and then switch between languages into WordPress dashboard, so that everything will be properly updated to the new way of managing restricted media = 1.4 = * Completely re engineered, so please update now! No more file rename to protect media, just simple htaccess rules = 1.3 = * You can now define which role can view the restricted media or content = 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/)!