Ip allowlisting wordpress login restriction limits logins to specific IPs or CIDR ranges. The strongest restriction available. Also the most likely to lock you out by accident. This guide covers when it fits and how to set it up safely in 2026.
When allowlisting fits
Internal corporate sites accessible only from office IPs. Admin areas that never need public access. Sites where every administrator works from a known fixed IP. Each is a clean allowlist candidate.
Sites where administrators work from many locations are poor fits.
Setup
Defyn Security Manager accepts a list of IPs and CIDR ranges. Save the list. Logins from outside the list fail without reaching authentication. The list is the entire access policy.
the Defyn Security Manager plugin also supports temporary exceptions for travel and emergency.
Lockout risk
If your IP changes and your saved list does not include the new IP, you lock yourself out. ISP changes, VPN changes, office moves all create the risk. Plan for the case.
Emergency disable via wp-config.php restores access. Document the procedure.
VPN solves the variable IP problem
A team VPN with a fixed exit IP lets you allowlist one IP for the whole team regardless of where they work. The VPN exit is the trusted point. Each team member tunnels through.
For multi office teams a VPN simplifies allowlisting dramatically.
Pair with other login defences
Allowlisting plus 2FA plus URL hiding produces near complete login protection. Even if an allowlisted IP is compromised, 2FA still blocks. Each layer matters.
Belt and braces.
Frequently asked questions
Is ip allowlisting wordpress login appropriate for public facing sites?
Only if administrators all work from a fixed set of IPs. Otherwise lockout risk is high.
Can I temporarily add an IP?
Yes. Plugin supports time limited entries.
What if I am locked out?
Emergency disable via wp-config.php restores access.
Will allowlisting break crontab or system tasks?
Server side tasks bypass the web login and are unaffected.
Related reading
- Time window access control
- Login security checklist
- Defyn Security Manager on WordPress.org – the plugin powering these techniques.




