SiteFort documentation

Login Security

Protect WordPress login with custom URLs, attempt limits, bot protection, password policies, and temporary lockouts.

Login Security Overview

SiteFort Login Security helps protect WordPress accounts from automated password attempts and unwanted login activity.

Open SiteFort → Login Security. The page has two tabs:

  • Settings: Manage your login URL, attempt limits, login form protection, and password policies.
  • Lockouts: Review and manage temporarily blocked IP addresses and accounts.
SiteFort Login Security Settings showing Custom Login URL, Login Attempt Limits, Login Form Protection, and Password Policies.
Login Security settings in SiteFort.

Login attempt limits and password protection are good starting points. Custom login URLs and CAPTCHA can help with unwanted bot traffic, depending on how your site handles sign-ins.

Two-factor authentication has its own Two-Factor (2FA) module and is documented separately.

Custom Login URL

Custom Login URL replaces the standard WordPress login address with a path you choose. This reduces automated requests targeting wp-login.php.

Enable Custom Login URL in the Settings tab, then configure:

  • Login URL: Enter the path for your new login page. The website address is filled in automatically.
  • Registration URL: Set the registration path if your website allows users to register.
  • Default wp-login.php behavior: Choose how SiteFort handles requests to the original login address.

Default Login URL Behavior

OptionResult
403Returns an access-denied response.
404Returns a page-not-found response.
RedirectRedirects requests according to the configured behavior.

For most sites, 403 or 404 is a better choice than redirecting bots to another login address.

Before changing the URL: Save the new address and keep an administrator session open. Test login, logout, password reset, and registration in a private browser window.

WooCommerce and membership websites should also check their customer account pages and any integrations that use the default WordPress login URL.

Login Attempt Limits

Login Attempt Limits temporarily blocks repeated failed sign-in attempts. SiteFort can track failures by both IP address and account.

Enable the setting and adjust the four controls shown in the card:

SettingWhat it controlsExample
Failed attempts per IPHow many failed attempts one IP can make within the detection window.5
Failed attempts per accountHow many failed attempts can target the same account.10
Detection windowThe period used to count failed attempts.5 minutes
Lockout durationHow long the temporary restriction lasts.30 minutes

These example values match the screenshot and are a reasonable starting point for many websites. They aren't required settings.

If several users share an IP address, or your site has many customers, you may need less restrictive limits. Review the Lockouts tab before making them stricter.

Account and IP restrictions are tracked separately. Unlocking an account does not necessarily clear a separate IP restriction.

Login Form Protection

This card contains separate controls for CAPTCHA, login identifiers, and login error messages. You can enable each setting independently.

CAPTCHA Protection

CAPTCHA can reduce automated login attempts and fake registrations. It is most useful when bots continue submitting forms despite login attempt limits.

Before enabling CAPTCHA Protection, connect a supported provider. If none is configured, SiteFort displays a Setup required notice with a Set up integration link.

After connecting the provider, enable CAPTCHA on the supported forms you want to protect. Test the login and registration process to confirm verification works.

Restrict Login Identifier

By default, WordPress accepts usernames and email addresses for login.

Enable Restrict Login Identifier if you want users to sign in using only one method, such as an email address or username.

Choose the option that matches how users access your site. For a customer-facing website, avoid changing the login method without checking your account forms and user instructions.

Block "admin" Username

Automated attacks often try to sign in with the username admin.

When enabled, SiteFort immediately locks out IP addresses attempting to use that username. The restriction is skipped if a real account on the website uses admin.

This is useful for stopping common username probes, but it does not replace login attempt limits or account security.

Hide Detailed Login Errors

WordPress can display different messages for an unknown account and an incorrect password. Attackers may use those messages to identify valid usernames.

Enable Hide Detailed Login Errors to show a generic message instead. Legitimate users can still use the normal password reset process.

Password Policies

Password Policies controls password strength, compromised-password checks, and optional expiration.

Each policy has its own switch under Login Security → Settings → Password Policies.

Enforce Strong Passwords

Enable Enforce Strong Passwords to require stronger passwords when users create or change them. Users with passwords that fail the policy must update them at their next sign-in.

Use Apply to Roles to choose which user roles must follow the policy.

At minimum, select Administrator. You can also include Editors, Shop Managers, and other roles with access to important site features or customer data.

The available roles depend on those registered on your WordPress website.

Breached Password Detection

This checks for passwords known to have appeared in data breaches.

Enable Breached Password Detection to block compromised passwords and require users to change one if it is detected during sign-in.

This helps protect accounts using passwords that may already be known to attackers, even when they appear reasonably complex.

Password Expiration Policy

Enable Password Expiration Policy if users must change passwords after a defined period.

Set the Rotation interval in days. For example, a value of 90 requires password changes every 90 days.

Routine expiration is generally unnecessary for ordinary WordPress users. It's better suited to environments where a security or compliance policy specifically requires password rotation.

For most sites, prioritize strong passwords, breached-password detection, and two-factor authentication over frequent password changes.

Review and Manage Lockouts

Open the Lockouts tab to review temporary restrictions created by failed login attempts.

When a legitimate user cannot sign in:

  1. Find the affected account or IP address.
  2. Review the lockout reason and remaining duration.
  3. Confirm the activity belongs to the legitimate user.
  4. Use Unlock if the restriction should be cleared.

Don't automatically allowlist an IP address because someone was locked out. Check the related activity first, especially if the address belongs to a shared or changing network.

If the same users are frequently affected, review your login attempt limits rather than repeatedly unlocking them.

SiteFort also distinguishes account restrictions from IP restrictions. Previously recognized browsers may continue signing in when an account is locked because of password attempts elsewhere, while failed 2FA challenges have separate lockout handling.

CAPTCHA on Custom Forms

SiteFort supports CAPTCHA on custom frontend login, registration, and checkout forms.

First, connect a CAPTCHA provider. Then add the appropriate shortcode inside the form:

FormShortcode
Login[sitefort_captcha action="login"]
Registration[sitefort_captcha action="register"]
Checkout[sitefort_captcha action="checkout"]

Place the shortcode inside the form that submits the request, not elsewhere on the page.

Standard WordPress authentication flows can use SiteFort's built-in validation. Custom AJAX or REST-based forms may need additional integration to validate the CAPTCHA before processing a submission.

Always test a failed CAPTCHA challenge. Seeing the widget on the form does not necessarily mean the submission is being protected.

Verify Login Protection

After changing login settings, test the sign-in paths your website uses.

  • Check the custom login URL and the response from the default login address.
  • Test login, logout, registration, and password recovery.
  • Confirm failed attempts trigger the expected temporary lockout.
  • Check that you can review and clear a legitimate lockout.
  • Verify CAPTCHA works on every form where it is enabled.
  • Confirm password policies apply to the intended user roles.
  • Test WooCommerce or membership login forms if your site uses them.

Keep an existing administrator session open while testing changes that could affect access.

For authenticator apps, email verification, recovery codes, and role-based enforcement, see Two-Factor Authentication.

If login stops working after a settings change, see Troubleshooting.