مرکز آموزش

Restrict WordPress Site Access by IP or Logged in Users Print

  • 1

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.


آیا این پاسخ به شما کمک کرد؟
Back