Site Access Restriction (SAR) - Plugin Settings


Plugin Settings Overview

Back to User Guide

This plugin allows users to create a membership and content restriction solution. The content restriction is based on user WordPress roles and if they are logged in or not.

Setting up Access Restriction Pages

The first thing to set up after plugin installation is to define the pages to redirect in case the user is trying to access a restricted content page. There are two types of access restriction. First, when user is not logged in. Second, when user is logged in but he is trying to access a page which is restricted to his role.

1) Accessing the Settings

Go to Admin Panel, then CM Site Access Restriction Pro, then Settings to open the settings page.

2) Go to the General Tab

In the General settings, you can specify both URLs.

Note

The parameter ?cmreg_redirect_url= will work only with CM Registration Pro plugin (as shown below). To use the default WP login, apply ?redirect_to=

  • The access defined URL is the general one which will show also for logged in users if they try to access content restricted to their WP role. 
  • The second URL (Login page URL) is the URL of the page which non logged in users will be redirected to when trying to access a page which has access restriction.

Time Restriction

You can select the page where the user will be redirected after a try to visit restricted page in case if his account is outside of approved time. Approved time is defining on the next tab of the Settings - Post Types, in the field Access denied X days from registration.

Role Restriction

Also, you can restrict dashboard access to certain roles (Feature added in version 1.3.3)

How Much Content is Restricted

Choose how much of the content is restricted:

  • Restricting the full content
  • Showing 20% of the content with a fade effect and message (configurable in the labels section)

    Example

Creating Exception for Homepage

If you use the latest posts as the homepage, you can make the homepage and exception.

Learn more: How To - Exclude Homepage When It Shows Latest Blog Posts

Display "Restricted Label" On The Archive Page

Archive pages are those that list items, such as your blog posts. To identify restricted posts in them, turn on the option.

Front-End Example

You can translate the message from the labels settings

3) Go to the Post Types tab

Next is the Post Types tab. In the section you can restrict all post which belongs to a custom post type and also restrict access to the general pages and posts. 

The whole list of items that you can restrict:

  • Posts
  • Pages
  • Media
  • Revisions
  • Navigation Menu Items
  • Custom CSS
  • Changesets
  • oEmbed Responses
  • User Requests
  • Reusable Blocks
  • Projects
  • Logs
  • Downloads
  • Payments
  • Discounts
  • Products
  • Variations
  • Orders
  • Refunds
  • Coupons
  • Theme Builders
  • Templates
  • Header Layouts
  • Body Layouts
  • Footer Layouts

The available options for each item are:

  • Access not resticted - access is allowed to all roles including not authorized users.
  • Access restricted to logged-in users - this means that all roles are authorized
  • Allow only anonymous access - only not authorized users are allowed to view the content. This option is available since version 1.4.10 of the plugin.
  • Access restricted by role - once selected you can specify which roles can access content
  • Access restricted by whitelist - only users from the whitelist are allowed to view the content. This option is available since version 1.4.10 of the plugin.
  • Access restricted by blacklist - the access is restricted only for users from the blacklist. This option is available since version 1.4.10 of the plugin.
  • Access denied X days from registration - the access is restricted for users, that were registered less than X days ago.
  • Restriction message view - choose the view of the message that the user will see when he tries to get access to restricted page:
    • Global settings - this is a default value, that you can change in General tab of the Settings.
    • Restrict full content - the user will not see any content - just an invitation to log-in.
    • Restrict with excerpt and fade effect - the user will see only little part of the content and an invitation to log-in.

Note On Media Files

In the case of media files, the plugin will restrict access to the media's Permalink, but not to the File URL.

The File URL usually follows the structure would  https://www.yoursite.com/wp-content/uploads/file

The image below has both Permalink and File URL highlighted:


More information about the Site and Content Restriction WordPress Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us