Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Exposed admin login (/wp-admin): how to find and protect it

OPS-158Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Most content management systems (CMS) use a well-known address for the admin login. WordPress uses /wp-admin and /wp-login.php. Joomla uses /administrator. Others use similar fixed paths. Because the address is the same on every site, automated scripts can find it without any effort.

Why it costs you leads or sales

If an attacker gets into your admin, they can change forms, redirect visitors, inject spam links or malicious scripts, or take the site down. Your lead forms and checkout may stop working or send data elsewhere. Search engines and ad platforms may flag the site as unsafe, which can pause campaigns.

How an open admin login leads to lost leads
  1. Bot finds /wp-adminDefault path is the same on every site
  2. No limits or 2FAUnlimited password guesses allowed
  3. Account taken overForms, scripts or redirects changed
  4. Leads and sales lostForms fail, ads paused, visitors sent away

The break is the missing protection on the login page; everything after it is at risk.

How to check if your site has it

Check whether your admin login is unprotected
  1. Open the default login URL

    In a private browser window, go to yoursite.com/wp-admin or yoursite.com/administrator. If a login form loads for you, the page is public.

  2. Test from a different network

    Try from your phone on mobile data. If you have an IP restriction, it should be blocked there.

  3. Look for attempt limits

    Enter a wrong password about six times. If you are never slowed, blocked or shown a challenge, there is no rate limiting.

  4. Check for a second factor

    Log in with a test admin account. If only a password is needed, 2FA is off.

  5. Read your server logs

    Search access logs for repeated POST requests to /wp-login.php or /administrator. Many hits from the same or many IPs show bots are already trying.

Count login attempts in an Apache or Nginx access logbash
grep "POST /wp-login.php" /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head

How to fix it

Use several layers. No single step is enough. Start with the ones that are quickest on your platform.

Protect the admin login by platform
  1. Turn on two-factor login

    Install a reputable 2FA or security plugin and require a second factor for all Administrator and Editor accounts.

  2. Limit login attempts

    Use a security plugin with login attempt limits and temporary lockouts. Test that it does not lock you out.

  3. Restrict by IP if you can

    If your team has fixed IPs, allow only those on /wp-admin and /wp-login.php (see the Custom code tab for server rules).

  4. Use a firewall

    Put a web application firewall (WAF) in front of the site, from your host, a CDN or a security plugin, to filter bad login traffic.

Nginx: allow only your office IP on the WordPress loginnginx
location ~ ^/(wp-login\.php|wp-admin/) {
    allow 203.0.113.10;
    deny all;
    # keep admin-ajax.php public if your front end uses it
    location = /wp-admin/admin-ajax.php { allow all; }
    # pass PHP to your usual handler here
}
Apache: IP allowlist for wp-login.phphtaccess
<Files wp-login.php>
    Require ip 203.0.113.10
</Files>
Admin login before and after

Unprotected

  • Login loads for any visitor
  • Unlimited password attempts
  • Password is the only barrier
  • Bots fill the logs

Protected

  • Login limited by IP or firewall
  • Attempts rate limited with lockouts
  • 2FA required for admins
  • Bot traffic blocked before it reaches the CMS
Login attempts reaching the CMS per dayExample numbers
Login attempts reaching the CMS per day (example)No protection: 1,200 attempts; Rate limit: 300 attempts; Rate limit + WAF: 40 attempts; IP allowlist: 0 attempts04609201,200300400No protectionRate limitRate limit + WAFIP allowlistattempts

Example: illustrative numbers showing how layered protection can cut attempts that reach the login form.

How to confirm it's fixed

Confirm the protection works
  • From a non-allowed network, the login page is blocked, challenged or not shown
  • Repeated wrong passwords trigger a lockout or delay
  • Admin accounts are asked for a second factor at login
  • You can still log in from your trusted device
  • Front-end forms and AJAX features still work after any /wp-admin rules
  • Server logs show fewer successful POSTs to the login path from unknown IPs

How to prevent it happening again

Treat admin access as something to review regularly. Remove old accounts, keep the CMS, themes and plugins updated, and use unique strong passwords from a password manager. After a redesign, migration or host change, re-check that your IP rules, WAF and 2FA are still active, as these settings are often lost.

Ongoing habits
  • Review admin users every quarter
  • Require 2FA for every privileged account
  • Keep core, plugins and themes updated
  • Monitor login attempts in your security plugin or server logs
  • Re-test protection after migrations and plugin changes

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard is a synthetic monitoring service: it runs your real customer journeys (lead forms, checkouts, booking and chat buttons), checks tracking hits and confirms test leads arrive. It does not test how well your admin login is protected.

Questions people ask

Is it bad to have /wp-admin publicly accessible?

It is normal, but risky without protection. Anyone can reach the login and try passwords. Add 2FA, login attempt limits and a firewall, or restrict the page to trusted IPs.

How do I protect my WordPress login page?

Turn on two-factor login for admins, limit login attempts, use strong unique passwords and put a web application firewall in front of the site. If your team has fixed IPs, allow only those on /wp-login.php and /wp-admin.

Should I change the wp-admin URL?

It can reduce bot noise, but it is not real security because the new address can still be found. Treat it as an extra layer on top of 2FA, rate limiting and a firewall.

How do I hide the /administrator login in Joomla?

Restrict it by IP or add a server-level password with .htaccess or your Nginx config. Also enable 2FA for admin users and keep Joomla and extensions updated.

Why am I seeing so many login attempts in my logs?

Bots scan the internet for default admin paths like /wp-login.php and try common passwords. It is routine for any public site. Rate limits, a WAF and 2FA stop these attempts from succeeding.

Can blocking /wp-admin break my website forms?

It can if you block /wp-admin/admin-ajax.php, which some themes and plugins use for front-end features. Keep that file reachable and test your forms after any change.

Does FunnelGuard detect an exposed admin login?

No. FunnelGuard monitors funnels, tracking and lead delivery, not admin login security. Use a web application firewall or a security scanner for this, and FunnelGuard to check your forms still work.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.