Turquoise abstract wavy W logo on a black background
Turquoise abstract wavy W logo on a black background
White WP PowerSuite logo on a black background
White WP PowerSuite logo on a black background

Summarize with AI:

On This Page
Last updated: 02/09/2026

IP Allow & Block List

Allow or block visitors by IP address—ideal for office-only dashboards or shutting out known troublemakers. Rules apply site-wide, including wp-admin and login.

Overview

Control access to your entire WordPress website using IP address and CIDR-based allow or block rules.

IP Allow & Block List works as a WordPress-level IP firewall with two operating modes. Use Blacklist mode to deny specific IP addresses or networks while allowing everyone else, or switch to Whitelist mode to create a private site that only approved IP addresses and networks can access.

Rules apply across the frontend, WordPress login, wp-admin, REST API, AJAX, and XML-RPC. IPv4 and IPv6 are supported, along with CIDR ranges, trusted-proxy-aware client IP detection, lockout prevention, and a customizable access-denied page.

IP Allow & Block List is a Pro module in WP PowerSuite.

Solid black square
Solid black square
Who is this for?
  • Businesses restricting WordPress access to trusted offices or networks
  • Agencies blocking known abusive IP addresses across client websites
  • Private and staging websites that should only be accessible from approved networks
  • Administrators who need site-wide IPv4 and IPv6 access rules
  • WordPress sites behind Cloudflare, reverse proxies, or controlled network infrastructure

Features

Blacklist Mode
Block selected IP addresses or network ranges with an HTTP 403 response while everyone else continues accessing the website normally.
Whitelist Mode
Allow access only from approved IP addresses and CIDR ranges, blocking everyone else across the protected WordPress installation.
IPv4 & IPv6 Support
Create rules using individual IPv4 or IPv6 addresses as well as CIDR network ranges.
Site-Wide Protection
Apply IP restrictions to the public frontend, WordPress login, wp-admin, AJAX, REST API, and XML-RPC.
Trusted Proxy Detection
Identify the actual client address through Cloudflare or explicitly trusted proxy configurations instead of blindly trusting spoofable forwarding headers.
Lockout Protection
WP PowerSuite checks your current IP before saving rules and rejects configurations that would immediately block your own detected address.
Custom Blocked Page
Show blocked frontend visitors a customizable access-denied page with your own logo, headline, message, background, and text colors.
HTML Blocked Page
Use a sanitized HTML file from the WordPress Media Library when you need a more customized access-denied experience.

Block Specific IP Addresses Across WordPress

There are situations where blocking an address only from the WordPress login form is not enough. You may want a known abusive source to stop reaching the frontend, API endpoints, wp-admin, AJAX handlers, and XML-RPC altogether.
Blacklist mode is designed for that situation.
Add an individual IPv4 or IPv6 address, or specify an entire CIDR range, and requests originating from a matching address are denied with an HTTP 403 response. Everyone outside the list continues accessing WordPress normally.
For example, you could block one address:
<203.0.113.25>
or an IPv4 network:
<192.168.1.0/24>
IPv6 addresses and ranges are supported as well.
Because the restriction is site-wide, it is considerably broader than Limit Login Attempts, which temporarily restricts authentication after repeated failures. IP Allow & Block List is appropriate when you already know that a particular address or network should not be allowed to access WordPress at all.

Create a Private WordPress Site With Whitelist Mode

Blacklist mode answers the question "Who should be denied?" Whitelist mode reverses that model and asks "Who should be allowed?"
When Whitelist mode is active, only IP addresses and networks appearing on your list can access the protected WordPress installation. Requests from everyone else are denied.
This can be useful for internal company sites, private administration environments, staging installations, development websites, restricted client portals, or other WordPress projects that should only be reachable from known networks.
The restriction applies to the frontend as well as administrative and API areas. Being logged into WordPress does not automatically override it, and administrators are not silently exempt. If an administrator's IP does not match the whitelist, that administrator is blocked just like any other visitor.
That makes Whitelist mode a powerful control, but it also means it should be used carefully on networks where public IP addresses change frequently.

Protect More Than the WordPress Login Page

IP Allow & Block List is designed as a site-wide WordPress access control, not merely a login restriction.
Rules apply to normal frontend requests as well as wp-login.php and wp-admin. They also extend to WordPress AJAX, REST API requests, and XML-RPC so a blocked address cannot simply move from the visible website to another WordPress interface.
The response is appropriate to the type of request. Normal HTML visitors receive the configured blocked page with an HTTP 403 status, while REST requests receive a structured 403 error and AJAX requests receive a JSON error. Administrative and XML-RPC access is denied as well.
This makes the module useful when your policy concerns the source IP itself rather than one particular WordPress feature.
If you only want to control an individual interface, more focused WP PowerSuite modules may be preferable. Disable REST API, for example, controls WordPress REST access, while Disable XML-RPC specifically closes XML-RPC when that functionality is not required.

Use Individual IP Addresses or CIDR Networks

Manually listing every address becomes impractical when an entire trusted or unwanted network needs the same rule.
IP Allow & Block List therefore supports CIDR notation for both IPv4 and IPv6.
A blacklist can block a network range instead of maintaining dozens of individual entries. A whitelist can similarly allow a known office, VPN, infrastructure, or other controlled network using an appropriate CIDR rule.
IPv4 masks from /1 through /32 and IPv6 masks from /1 through /128 are supported.
Entries are validated when settings are saved, and invalid addresses or malformed ranges are discarded rather than becoming ambiguous firewall rules.
Because a CIDR entry can cover a large number of addresses, ranges should be chosen carefully—especially in Whitelist mode. An overly broad rule can provide access to far more systems than intended.

Detect the Real Visitor IP Behind Cloudflare and Proxies

IP restrictions are only useful when WordPress is evaluating the correct client address.
On a direct connection, that will usually come from the server's remote address. Websites behind Cloudflare, reverse proxies, load balancers, or other network infrastructure can be more complicated because WordPress may otherwise see the proxy address rather than the original visitor.
WP PowerSuite uses shared client-IP detection that can recognize Cloudflare's CF-Connecting-IP and explicitly configured real-IP headers when the request comes through a trusted proxy.
It deliberately avoids blindly trusting common spoofable headers such as X-Forwarded-For, Forwarded, or Client-IP. Accepting arbitrary forwarding headers from any request would allow a visitor to potentially claim a different source address and undermine IP-based restrictions.
The settings interface shows the detected client IP and its source, and Add My IP to List uses the same resolver as actual enforcement. This makes it easier to verify which address WP PowerSuite will use before creating access rules.

Customize the Access Denied Page

Blocked visitors using ordinary HTML requests do not need to see a generic WordPress error screen.
The built-in blocked page can display a custom title, headline, message, and logo, along with configurable background and text colors. This allows businesses and agencies to provide a more intentional response explaining that access to the website is restricted.
For more customized layouts, you can select an HTML file from the WordPress Media Library. WP PowerSuite sanitizes that HTML before output and wraps it in a minimal page document.
This is deliberately not an unrestricted arbitrary-code template. Scripts, styles, event handlers, and document wrappers are removed during sanitization, reducing the risk of turning an access-denied page into another place for executable code.
API and administrative requests continue receiving appropriate structured or standard 403 responses rather than the frontend design.

Use Cases

  • Block Known Abusive IP Addresses
    Prevent specific addresses or networks from accessing the WordPress frontend, login, dashboard, REST, AJAX, and XML-RPC.
  • Block abusive rRestrict a Staging Websiteanges
    Use Whitelist mode to make a development or staging WordPress site available only from approved networks.
  • Soft private previewsProtect Internal WordPress Sites
    Allow access only from company offices, VPN networks, or other controlled IP ranges.
  • Restrict WordPress Administration Environments
    Combine an IP whitelist with Two-Factor Authentication for stronger protection of sensitive WordPress installations.

Frequently Asked Questions

Related Modules

Turn off public "forgot password" self-service for everyone. Use only when you reset passwords another way (manual admin password, WP-CLI, or admin-sent...
Disabled
Tell modern browsers to enforce sensible safety rules—like blocking sneaky scripts and iframe tricks—with strong defaults you can tighten further for HSTS...
Disabled
Removes WordPress version from public HTML generator tags, feed generator output, and the admin footer. Does not change ver= on script and...
Disabled
Remove the dashboard screens that let anyone edit theme or plugin code from the browser—one less disaster if an account is compromised.
Disabled
Keep a clear record of important dashboard activity—who logged in, what changed, and when—so you can investigate issues or stay audit-ready without...
Disabled
Ask a quick math question, custom prompt, or image check before someone can submit a form or log in. Everything runs on...
Disabled
Bot protection with Cloudflare Turnstile on logins, forms, comments, and WooCommerce—low hassle for real people.
Disabled
Put your whole site behind one shared password—ideal for staging, client previews, or a soft launch before you go public.
Disabled
Google reCAPTCHA on logins, forms, comments, and WooCommerce to block bots and spam signups.
Disabled
Stops old-style trackbacks and pingbacks that often bring spam or junk alerts.
Disabled