Locking your WordPress login


If your website runs on WordPress, the Admin login lock lets only the IP addresses you choose open your WordPress login page and admin area. Everyone else sees the stillorigin block page with "Reason: this page is limited to allowed addresses." It helps stop people trying to guess their way into your site.

The lock is off by default.

What the lock covers

  • your WordPress login page (wp-login.php)
  • your WordPress admin area (/wp-admin/)

It doesn't cover admin-ajax.php, because the public pages of many WordPress sites use it.

The lock always blocks, even while your Website protection rules are in log mode.

Before you turn it on

Find the IP address of everyone who logs in to your site, including your own. An easy way is to search for "what is my IP" in any search engine.

Remember that addresses can change, for example when you're on mobile data, travelling or working from somewhere else. If you or your team log in from an address that isn't on the list, you'll be blocked from the login page until it's added.

Turn on the lock

  1. Open the Settings tab.
  2. Go to Admin login lock.
  3. Under Allowed IP addresses, add the IP addresses or address ranges that may log in, one per line. You can add up to 50, and the list can't be empty.
  4. Click Turn on lock. To change the list later, click Save addresses. To turn the lock off, click Turn off lock.

If you don't see Admin login lock on Settings, your host manages it for you. Contact your host if you'd like it changed.

If your host has turned on the lock for your site, you'll see a message like this, and you can't change it:

Your host has locked your WordPress login page and admin area to 1 IP address.

Ask your host if the lock needs changing.

If someone is locked out

On the Blocks tab, a blocked login shows as Admin login lock: address not allowed. If it was you or someone on your team, add their IP address to the list on Settings.

The lock doesn't affect your protection area, so you can always fix the list by opening Manage protection from your hosting account.

HTTPS and the lock

Your host chooses how secure (HTTPS) visits to your site are handled. If your host passes HTTPS through without inspecting it, the lock only covers plain HTTP visits. You can't change this yourself, so ask your host if you'd like the lock to cover HTTPS as well.

Built-in WordPress protections

Separate from the lock, Website protection always applies some built-in WordPress protections, even in log mode. See "What your website protection does".


Was this answer helpful?

Still need help?

Our friendly support team are ready to offer assistance with any issues you may be encountering.
Click the button below to open a ticket:
Open Ticket

 WordPress Hosting

Fast hosting for WordPress
Experience the best in Australian WordPress hosting with lightning fast servers, built-in caching, and performance tools.

 Build Your Website

Sitejet Hosting
Build your site fast with a drag and drop editor with no coding required. 140+ quality, templates to get you started.

 Register Domains

It all starts with your domain name
Find the perfect domain and register now with our competitive pricing on all extensions.

 Web Hosting

Fast, local, secure hosting
Full featured hosting on cPanel with multiple server locations around the country.
« Back