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 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

How to Add a Full Screen Background Image in WordPress

The use of background images on WordPress sites has become increasingly popular recently.Â...

How to Add a PDF Download to Posts in WordPress

To add a PDF to a WordPress post, from the left-hand navigation menu in WordPress: ClickÂ...

Disable/Enable All WordPress Plugins via the Database

  If your WordPress admin login page is only showing a blank screen, it could be due to an...

How to Change Your WordPress Login Username

If you do not want to use the default login username for WordPress, there are two options for...

How to Install/Uninstall WordPress Plugins

Currently, there are two ways to install a Wordpress plugin: by uploading the file directly...