Title: NutsForPress Restricted Contents
Author: Christian Gatti
Published: <strong>June 23, 2021</strong>
Last modified: December 6, 2025

---

Search plugins

![](https://ps.w.org/nutsforpress-restricted-contents/assets/banner-772x250.png?
rev=2552521)

![](https://ps.w.org/nutsforpress-restricted-contents/assets/icon-256x256.png?rev
=2552521)

# NutsForPress Restricted Contents

 By [Christian Gatti](https://profiles.wordpress.org/christian-gatti/)

[Download](https://downloads.wordpress.org/plugin/nutsforpress-restricted-contents.1.4.zip)

 * [Details](https://test.wordpress.org/plugins/nutsforpress-restricted-contents/#description)
 * [Reviews](https://test.wordpress.org/plugins/nutsforpress-restricted-contents/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/nutsforpress-restricted-contents/#installation)
 * [Development](https://test.wordpress.org/plugins/nutsforpress-restricted-contents/#developers)

 [Support](https://wordpress.org/support/plugin/nutsforpress-restricted-contents/)

## Description

_Restricted Contents_ is one of the several NutsForPress plugins providing some 
essential features that WordPress does not offer itself or offers only partially.

Install and activate **Restricted Contents** 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 access to a restricted content, he will be redirected
to the login page or to the page you have defined into “Restricted Contents” plugin
options. 

Furthermore, you can grant access to post or pages only to a specific role, to more
roles or to every logged-in users: chose from the dropdown menu, just after the “
is restricted” checkbox.

In association with [Main Entrance](https://wordpress.org/plugins/main-entrance/),
Restricted Contents helps you to build a restricted content page, for allowing to
download documents only to logged in users.

Restricted Contents is full compliant with WPML (you don’t need to translate any
option value)

Take a look at the others [NutsForPress Plugins](https://wordpress.org/plugins/search/nutsforpress/)

**Whatever is worth doing at all is worth doing well**

### Translations

 * English: default language
 * Italian: entirely translated

### Credits

 * Very many thanks to [DkR](https://dkr.srl/) and [SviluppoEuropa](https://sviluppoeuropa.it/)!

## Installation

#### Installation From Plugin Repository

 * Into your WordPress plugin section, press “Add New”
 * Use “NutsForPress” as search term
 * Click on _Install Now_ on _NutsForPress Restricted Contents_ into result page,
   then click on _Activate_
 * Setup “NutsForPress Restricted Contents” options by clicking on the link you 
   find under the “NutsForPress” menu
 * Enjoy!

#### Manual Installation

 * Download _NutsForPress Restricted Contents_ from https://wordpress.org/plugins/
   nutsforpress
 * Into your WordPress plugin section, press “Add New” then press “Load Plugin”
 * Choose nutsforpress-smtp-mail.zip file from your local download folder
 * Press “Install Now”
 * Activate _NutsForPress Restricted Contents_
 * Setup “NutsForPress Restricted Contents” options by clicking on the link you 
   find under the “NutsForPress” menu
 * Enjoy!

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“NutsForPress Restricted Contents” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Christian Gatti ](https://profiles.wordpress.org/christian-gatti/)

“NutsForPress Restricted Contents” has been translated into 1 locale. Thank you 
to [the translators](https://translate.wordpress.org/projects/wp-plugins/nutsforpress-restricted-contents/contributors)
for their contributions.

[Translate “NutsForPress Restricted Contents” into your language.](https://translate.wordpress.org/projects/wp-plugins/nutsforpress-restricted-contents)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/nutsforpress-restricted-contents/),
check out the [SVN repository](https://plugins.svn.wordpress.org/nutsforpress-restricted-contents/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/nutsforpress-restricted-contents/)
by [RSS](https://plugins.trac.wordpress.org/log/nutsforpress-restricted-contents/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4

 * Fixed a bug that caused the reset of the options of this plugin when WPML was
   installed and activated after the configuration of this plugin

#### 1.3

 * Tested up to WordPress 6.2

#### 1.2

 * Now translations are provided by translate.wordpress.org, instead of being locally
   provided: please contribute!

#### 1.1.3

 * Fixed a bug that caused an error with the function is_plugin_active

#### 1.1.2

 * Fixed a serious bug that caused an error when using this plugin with a different
   page builder then Elementor

#### 1.1.1

 * Fixed a bug that displayed some option messages that should have been kept hidden
   by a css rule miswritten by an escape rule

#### 1.1

 * Fixed a bug which prevented from editing with Elementor the restricted pages 
   with access granted to a role different from the admin or the editor
 * Fixed a bug which caused the deletion of the htaccess rules for all the restricted
   media during permalink rebuild
 * Fixed a bug that, in some cases, prevented to set media as restricted
 * Added the correct class/style to “is restricted” checkbox into media element

#### 1.0

 * First full working release

## Meta

 *  Version **1.4**
 *  Last updated **5 months ago**
 *  Active installations **10+**
 *  WordPress version ** 5.3 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.0.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/nutsforpress-restricted-contents/)
   and [Italian](https://it.wordpress.org/plugins/nutsforpress-restricted-contents/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/nutsforpress-restricted-contents)
 * Tags
 * [hide](https://test.wordpress.org/plugins/tags/hide/)[NutsForPress](https://test.wordpress.org/plugins/tags/nutsforpress/)
   [private](https://test.wordpress.org/plugins/tags/private/)[protect](https://test.wordpress.org/plugins/tags/protect/)
   [restrict](https://test.wordpress.org/plugins/tags/restrict/)
 *  [Advanced View](https://test.wordpress.org/plugins/nutsforpress-restricted-contents/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/nutsforpress-restricted-contents/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/nutsforpress-restricted-contents/reviews/)

## Contributors

 *   [ Christian Gatti ](https://profiles.wordpress.org/christian-gatti/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/nutsforpress-restricted-contents/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/paypalme/ChristianGatti)