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 that 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 that 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, 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.
Don’t forget to save your changes.