Restrict WordPress Site Access by IP or Logged in Users

If you need to redirect restricted visitors to a specific page or prevent them from having access to all or certain portions of your site, there is a way to limit access to your WordPress site to only visitors who are logged in or to specific IP addresses. While we do not often recommend the use of plugins,the Restricted Site Access plugin can be very helpful in limiting access to your WordPress site.

We recommend making a backup of your WordPress from within the WordPress Dashboard before adding or activating a new plugin. For instructions on how to backup WordPress, please refer to the following article from WordPress: WordPress Backups.

Install Restricted Site Access Plugin

To install the Restricted Access Plugin on your WordPress site:

  1. Login to WordPress Dashboard via https://yourdomain.com/wp-admin.php or https://yourdomain.com/wp-login.php (replace yourdomain.com with your actual domain name).
  2. From the left navigation menu, click Plugins > Add New.
  3. Search "Restricted Site Access" and click Search Plugins.
  4. Click Install Now > Ok.
  5. Click Activate Plugin.

Plugin Configuration

  1. Go to Plugins > Installed Plugins.
  2. Navigate to the Restricted Site Access plugin and click Settings.
  3. In the Site Visibility section, click Restrict site access to visitors who are logged in or allowed by IP address.
  4. In the Handle Restricted Visitors section, click on the action of your choice.
  5. In the Unrestricted IP Addresses section, add any IP addresses that are allowed to have unrestricted access to your WordPress site. This should include your developers and/or website designers.
  6. Click Add My Current IP Address.  This will ensure that you to have unrestricted access to your site.
  7. Click Save Changes.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Why Videos Should Never be Uploaded to WordPress

  Video content can make a website a lot more interesting by adding additional value to a...

Optimizing WordPress

WordPress is currently one of the most popular blogging/CMS applications in use on our servers....

WordPress Home Fix

If the links in your blog show the wrong domain, redirect to another site or if they are...

How to Login to WordPress

Logging in to WordPress is as simple as visiting your WordPress dashboard URL.   Note: Your...

How to Install WordPress

WordPress is one of the most popular blogging platforms around for good reason. It is easy to...