Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Restrict Login By IP

Lets you specify IP addresses or hosts that users are allowed to login from.

"Restrict By IP" lets you specify IP addresses or hosts that users are allowed to login from. Only users that have the exact IP will be able to access the dashboard. Everyone else will get a "Forbidden" error when trying to log in or access an admin page directly. However, normal visitors won't be affected - everyone will still be able to read your posts browse the site.

When setting the allowed addresses, you can use full IPs (e.g. "") or a range of IPs (e.g. "12.34"). If necessary, you can also use more advanced settings - define allowed subnet(s) via network/netmask, enter IPv6 addresses, etc. All the configuration is done via a very simple and intuitive* interface.

* Maybe.

On the technical side, the plugin is basically a very simple frontend for setting mod_access/mod_authz_host directives in the .htaccess file.

Requirements : PHP 5 or later, Apache, mod_access or mod_authz_host.

Requires: 2.6 or higher
Compatible up to: 2.7
Last Updated: 8 years ago
Active Installs: 100+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.