• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
Skip to content

WordPress.org

  • Showcase
  • Learn
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
    • Five for the Future
  • About
  • Blog
  • Hosting
  • Get WordPress

Plugins

  • My Favorites
  • Beta Testing
  • Developers

This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Download

Restrict Login By IP

By Janis Elsts
  • Details
  • Reviews
  • Installation
  • Support
  • Development

Description

“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. “12.34.56.7”) 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.

Installation

  1. Download and extract the ZIP file.
  2. Upload restrict-login-by-ip to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Go to Users -> Allowed Login IPs configure the plugin.

Note : If you accidentally lock yourself out of your site, edit your .htaccess file to remove everything that refers to “RestrictByIP”. Also edit or delete the .htaccess file the plugin has created in wp-admin.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Restrict Login By IP” is open source software. The following people have contributed to this plugin.

Contributors
  • Janis Elsts

Translate “Restrict Login By IP” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Meta

  • Version: 1.0
  • Last updated: 12 years ago
  • Active installations: 30+
  • WordPress Version: 2.6 or higher
  • Tested up to: 2.7
  • Tags:
    htaccessiploginrestrictsecurity
  • Advanced View

Ratings

This plugin has not been rated yet.

Log in to submit a review.

Contributors

  • Janis Elsts

Support

Got something to say? Need help?

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.