How to Restrict Access to your WordPress Site

ProfilePress has a feature that allows you to restrict unauthorized users from accessing your website.

Global Site Access

You can make the site accessible to everyone or logged-in users only.

Redirect Page

When you restrict access to the website, you need to redirect users who try to access the site to another page or custom URL. Select the page from the drop-down or provide a custom URL to redirect users who are not logged in.

Pages to Exclude

You might decide to exclude additional pages besides the redirect page that will be accessible to everyone. You can select as many as you want here.

Accessible Homepage

This option allows you to make the homepage accessible to everyone. To activate, tick the checkbox.

Global Restricted Access Message

When users try to access a page they cannot view, this message will be shown to them. You can customize it as needed.

Make sure to click on save changes when done.

Blocking WordPress Registrations from Specific Email Domains

ProfilePress also lets you block specific email domains from being able to register on your WordPress site.

Still on ProfilePress >> Settings >> Access settings page, scroll down to the “Blocked Email Addresses” section and enter into the textarea the email addresses to block, one per line.

Say you want to block user registration and checkout from Yahoo email addresses; enter into the box @yahoo.com.

To block user registrations from emails ending with a .gov TLD e.g. [email protected], enter .gov in the box.

Restricting WordPress Registrations to Specific Email Addresses

If you only want to allow WordPress user registration from specific email addresses, email domains, or TLDs, use the “Allowed Email Addresses” setting to specify the email addresses to allow.

You can use “Blocked Email Addresses” and “Allowed Email Addresses” together if, for example, you want to block certain email domains but allow specific ones or restrict user registration to specific email addresses but want to stop certain users with an allowed email from registering. The choice is yours.

Don’t forget to save your changes.