How to manage access to WordPress website by IP address

This article is dedicated to premium IP Check extension version 2.0 or higher that is available for purchase from our online store.

IP Check extension 2.0 no longer supports access check based on geographical location because the service that we used for geo-lookup freegeoip.net is no longer available. Currently we do not consider a priority to find a service that will replace it so IP Check extension is limited to IP and referred domain verification.

Sometime there is a need to restrict access to your WordPress website for all visitor based on referred host or IP address. With AAM IP Check extension this task is either than ever.

AAM IP Check

Please Note! You can manage access to your website only for not authenticated users (visitors). So technically you cannot restrict access to your website for any individual user or user role.

Upon extension installation, when you switch to manage visitors, you’ll find the IP Check tab that contains the list of rules that define which IP addresses and referred hosts allow or deny access to the entire website. For example you can restrict access to your website for all IP addresses (*.*.*.*) and allow only for subset of IP addresses like 10.45.1-50.* and anybody who comes from specific domain like somedomain.com.

Currently AAM supports only IPv4 addresses and you absolutely have to define 4 octets where * means range 0-255 or you can explicitly specify range e.g 45-127 or 1-34 etc.

To add a new rule, go to IP Check tab and click on “+ Create” button. This will bring the “IP Check Rule” modal where you can select the rule type, enter value and define access mode allowed or denied.

IP Check Add Rule

IP Check rules are evaluated in specific order where all denied rules are evaluated before allowed rules. This way you can deny access to all IP addresses or hosts and override it for few.

When access is denied to your website, visitor will be redirected based on Access Denied Redirect rule.

Get notified about important updates and new features (no more than one email per month).