Adding WordPress Content Protection Rules

Content Protection in ProfilePress is a modern and logical way of protecting content such as pages, child pages, posts, custom post types, categories, tags, and custom taxonomies in WordPress.

You can restrict your WordPress content to a particular group of users, including everyone, members or customers of a membership plan, logged-in users, and logged-out users.

The Content Protection feature can be found under the ProfilePress menu in the WordPress dashboard.

When the Add New button is clicked, it will take you to the screen where you can start building your protection rule.

Enter a descriptive title for the rule you are creating, the contents to protect, the logical OR/AND, and who can access the content. When you are done, click the Save Rule button.

The Access Condition section allows you to assign who can access the content you want to protect, such as Everyone (all users will have access to the content), Logged in users (only those who are logged in can access the content), and Logged out users (only those who are not logged in to your website can access the protected content).

The Logical AND rule only kicks in when all grouped conditions are true, and the Logical OR rule happens when one of the conditions in a group is true.

In the screenshot above, we used the OR logic, where the protection rule will kick in when anyone accesses either of the selected post or pages. Of course, this means you want everyone to access the selected post and page.

The rule above will restrict posts on your site that belong to both Film and TV Series categories.

You can restrict your protected content to members or customers of specific membership plans, selected user roles, and specific registered users.

You can show unauthorized users the global restriction message, a custom message, or the post excerpt or redirect them to a specific page.

Restricted Access Message Styles

You can also select the “Blur & Fade Effect” as the Access Message style to give the end of the post excerpt a blurring/fading effect. See the preview below.

WordPress metere paywall demo content

Restricted Page Template

Another is the “Restricted Page Template” option which replaces the whole page content with your restricted message. This is particularly useful when trying to protect contents that overflow the main post content. A classical example is The Event Calendar plugin that displays content before and after the main post content.

Note that the Restricted Page Template feature works together with “Message to show to unauthorized users” set to “Custom Message”; otherwise, nothing will be displayed when a post or page that is restricted is viewed.

Below is a preview of the “Restricted Page Template” feature.

Note that you can create as many content protection rules as you want.

You can also deactivate/activate any rule from the Rules listing page.

La fin!

If you have any pre-sale questions, inquiries, or contributions, please get in touch.