How to Restrict WordPress Site Access

A lot of the time, you need to restrict access to various users on your website. Whether you’re cordoning premium content, sensitive pages, or content targeted to specific individuals, there are various ways you can restrict user access easily and effectively on your WordPress website.

The easiest method is using plugins that you can just download and link with your website. If you have coding skills, you can also edit various functions to achieve the same thing.

We shall also take a look at how you can restrict site managers with various levels of access. Whatever kind of site restrictions you need to accomplish, stick with us and we will help you do it.

You may also be interested in our post about adding a WordPress user sign-up.

How to Restrict Site Visitors on Your WordPress Website

A lot of the time, you need to give your site visitors access based on their roles (e.g, contributors, buyers, reviewers), login status, membership status, among other reasons.

The best way to restrict site visitor access is to use plugins. There are three important plugins for various applications:

1.    Restrict Content Pro

Restrict Content Pro, together with its free sibling Restrict Content, are powerful plugins that help you to restrict users by status. Whether you are managing subscriptions, payments, or doing content dripping, the plugin lets you manage what kind of content users can see based on their subscription status.

Once you install the plugin on your site, you will need to activate it and enter the provided license key after purchase. The really cool thing about the plugin is that it allows you to accept payments directly through gateways such as PayPal, Stripe, Braintree, and

Once you have set up payments, you can then restrict your posts accordingly by user role and even set up a meta box to show a custom message to users. Once set up, the plugin controls access according to subscription payments automatically.

2.     Ultimate Member

Ultimate Member is a versatile plugin that allows you to create user profiles and use those profiles to restrict content to site members, that is, those who are either logged in, logged, paid, etc.

The plugin is one of the best on WordPress and allows powerful admin capabilities including editing user roles and maintaining up to date member directories. Plus, you can direct users who are locked out to a membership page or offer them a sign up/login option right there in beautifully designed meta boxes and popups. Best of all, Ultimate Member is completely free.

3.    Use Profile Builder to Restrict User Roles

Profile Builder is a particularly powerful and versatile content restriction plugin that works through the use of user profiles. If you have seen those sites with a paywall that lets you read only the first few paragraphs that is the kind of functionality you get with Profile Builder.

Once set up, the app allows you to change permissions (they are turned off by default) and create a custom registration landing page to inform users about what they can do or where they can go to access your content.

From there, you can visit any post or page and set “logged in users” permission to “on”. You can also go further and restrict admins, editors, authors, contributors, customers, subscribers, etc. by simply checking the right boxes.

Profile Builder also comes with Google ReCAPTCHA functionality among other tools to help keep off jokers and spammers. However, some of the extra features will require you to pay for the Pro version.

4.    LearnDash

Some unique sites need more customizable access control features. LearnDash is a Learning Management System (LMS) plugin that allows you to create and sell courses online and restrict access accordingly to course material.

LearnDash also helps you to monetize your site through Paypal as a native payment processor or Stripe and 2Checkout as extensions. Once that is set up, you can create courses and add course material.

You can even pair LearnDash with another plugin such as MemberPress. That way, you get to manage subscriptions by creating subscription plans which grant automatic access to eligible visitors.

How to Restrict Users Administrative Access on WordPress

It is common to have multiple people working on a website simultaneously to manage content, campaigns, graphics, and more. However, it is imperative to manage the administrative power of each user depending on their role to avoid costly mistakes.

This is easily done in three ways. One is through WordPress’s own User Roles to set different permissions. The second is through plugins such as Restrict Categories, or User Role Editor, while the third method is by coding.

Restrict Dashboard Access on WordPress Sites

Site owners, as the most powerful WordPress site user, can give or restrict access permissions to all other users including Admins. They can assign roles such as who can edit, write posts, publish them, create pages and categories, manage plugins, and even customize the site’s themes and settings.

The options available include:

●       Subscriber – the most limited role, these users can only view content on the front end and manage their own profiles

●       Editor – this user can write, edit, publish, and delete posts, even those done by others. They can also moderate comments.

●       Authors – Authors create, edit, publish, and delete their own posts. They can also upload files and images, as well as moderate comments on their posts

●       Contributor – a contributor is like an author with fewer roles. They can read all posts, and also delete or edit their own. However, they cannot publish them or upload any media

●       Administrator – Administrators have powerful access including to site settings plus the ability to add, delete, and modify plugins. They can also add, delete, and edit pages and categories. However, there is usually only one of these roles

There is also a Super Admin Role (just like the site owner) with the power to modify the various user capabilities using functions such as add_cap() or remove_cap().

Use Plugins

1.     Remove Dashboard Access

This is a handy plugin that simply limits users to the WP dashboard, which means they have no admin powers. Plus, it only takes a single click to enable this versatile plugin.

2.     Branda

This is a plugin that allows you to customize the admin menu further based on user rules and restrict access to specific areas.


Restricting user access on your WordPress site is necessary, if only for the purpose of maintaining security and preventing deliberate or accidental sabotage. Between your site visitors, contributors, and users with active roles, these various methods will help you limit user access effectively and easily.

About the Authors

Anto's editorial team loves the cloud as much as you! Each member of Anto's editorial team is a Cloud expert in their own right. Anto Online takes great pride in helping fellow Cloud enthusiasts. Let us know if you have an excellent idea for the next topic! Contact Anto Online if you want to contribute.

Support the Cause

Support Anto Online and buy us a coffee. Anything is possible with coffee and code.

Buy me a coffee

Leave a Reply

Your email address will not be published. Required fields are marked *