Security Optimizer is SiteGround's free WordPress plugin for login protection, site hardening and activity monitoring. You can use it on other hosts too. I'd configure two-factor authentication and a recoverable login route first, then review the hardening switches against the features your site uses.

Choose the right security tool

The Security Optimizer directory listing uses the slug sg-security. Older guides call it SiteGround Security. Speed Optimizer is a separate performance plugin; its caching features don't belong to this one.

SiteGround's product page confirms that the plugin is free and available on other hosts. That doesn't give another host SiteGround's managed hosting protection. The directory also requires a working .htaccess file. Ask your host to confirm support for the server-level rules before assuming every switch protects an Nginx or otherwise customized installation.

Choose one tool to manage each overlapping login rule. If you already use Wordfence, compare the enabled features before adding another security plugin. I'd avoid having both plugins impose two-factor authentication, change the login route or block the same IPs: recovery becomes harder when several controls can deny access.

Prepare a recovery route, then install

Keep a recoverable backup, including the database and files. The UpdraftPlus guide covers backup preparation. Confirm that you can reach the hosting account independently of WordPress and that a trusted administrator can help if your own account is locked out.

  1. In WordPress, open Plugins → Add New and search for Security Optimizer by SiteGround. Confirm the developer and sg-security listing, then install and activate it.
  2. Open Security Optimizer in the admin menu. Review the dashboard and existing settings before changing them; activation isn't a reason to accept every default.
  3. Update an older installation before configuring it. The directory's 1.7.0 changelog includes login, 2FA and user-enumeration improvements.
  4. Make one change at a time. Keep the current administrator session open while checking the intended login path in a separate browser session.

Updates matter for this plugin as well as the software it protects. Wordfence's vulnerability history records patched security issues. A current release is a starting point for maintenance, not proof that a site cannot be compromised.

Set up two-factor authentication with backup codes

Under Login Security, enable Two-factor Authentication for Admin & Editors Users when those users are ready to enroll. The login-security manual says administrators and editors are prompted to configure it at their next login. Plan the change with everyone affected rather than surprising an editor during a deadline.

Use Google Authenticator, which SiteGround documents for this feature. Scan the enrollment QR code and enter its six-digit code. Save the backup codes in a secure place you can access without the phone or this WordPress session. Each backup code works once. Complete a fresh login successfully before closing your existing admin session.

Security Optimizer Authentication Code field and Authenticate button
Enter the current six-digit authenticator code, then choose Authenticate.

I'd finish enrollment before considering an IP allowlist. A second factor still lets an administrator sign in from another authorized location, while an IP restriction can deny access before that user reaches the authentication step.

Limit failed logins without stacking lockouts

Limit Login Attempts blocks the originating IP after the selected number of failed logins. SiteGround documents escalating blocks of one hour, then 24 hours, then seven days if failures continue. Choose a supported threshold that fits your users, and make sure another plugin isn't applying a different lockout policy.

Security Optimizer Limit Login Attempts setting with a dropdown showing 5
The dropdown sets the failure threshold. The example shows 5; the text explains the longer blocks after repeated failures. View full size (opens in a new tab)

Open Activity Log → Blocked when investigating a denied login. Review the IP and circumstances before unblocking it. A shared office connection can put several people behind one public IP, so a block doesn't establish which person entered the wrong password. Don't deliberately trigger repeated production lockouts to see the week-long escalation.

Change the login route carefully

Custom Login URL lets you replace the default login path. Save the new address privately and update legitimate staff bookmarks. Check the site's sign-in links and password-reset process in the separate session; hiding a route doesn't replace a strong password or a second factor.

Login Access is a different control: it allows only specified IP addresses or ranges to reach the login area. I'd leave it unused for administrators with changing home, mobile or VPN addresses unless they have a reliable recovery procedure. Don't add a broad ISP range merely to avoid a lockout; that also permits other users of that range. With a proxy or CDN, ask the host to confirm the real visitor IP before creating restrictions.

Disable Common Usernames prevents common names such as admin and can prompt you to replace existing weak names. Review the affected account before confirming a replacement, then update the stored login in your password manager. It doesn't make a weak password acceptable.

Review hardening against your site's features

The Site Security manual explains the switches. Lock and Protect System Folders uses .htaccess rules in system folders. Disable Themes & Plugins Editor removes the dashboard code editors. Keep a separate, controlled method for legitimate code changes rather than reopening those editors for routine editing.

Review Disable XML-RPC against any service that uses that protocol. SiteGround specifically identifies Jetpack and mobile apps as possible legitimate users. If disabling it breaks a required connection, restore that function and review the integration's protection with your host.

Leave Disable RSS and ATOM Feeds off if readers or services need your feeds. Losing a subscribed feed is a real feature loss. Hide WordPress Version reduces exposed version information, and Advanced XSS Protection adds response headers; neither fixes vulnerable plugin code. Keep WordPress, themes and plugins maintained even when these options are enabled.

Use the log to investigate activity

The Activity Log documentation separates Unknown, Registered and Blocked activity. Unknown includes unauthenticated humans and bots; it isn't a list of confirmed attackers. Correlate an unusual event with its time, account and requested page before blocking an address.

SiteGround documents a 12-day activity window and excludes logging on staging sites. Preserve relevant evidence outside that window when investigating an incident. Weekly reports can help you notice changes, but a quiet report doesn't establish that the site is clean.

Recover access with the right control

For a missing phone, use an unused backup code first. If another trusted administrator can still sign in, have them review the affected user's 2FA rather than changing unrelated login restrictions.

If no administrator can enter, use your verified hosting access and ask the host to help with the exact WordPress installation. SiteGround's WP-CLI command reference documents wp sg secure 2fa disable. This disables the plugin's 2FA feature; it isn't a reset for just one user's phone. Use it only for the relevant recovery, restore 2FA promptly and confirm enrollment and login again.

A blocked IP, lost custom login URL and missing second factor are different failures. Tell the host which change preceded the problem, and keep a backup of the configuration before recovery changes. Don't disable unrelated security products or erase the whole plugins directory as a general login fix.

Understand the limits of Post-hack Actions

Post-hack Actions includes Log Out All Users, Force Password Reset and Reinstall All Free Plugins. Logging users out ends their sessions; forcing a password reset also requires a new password at the next login and signs you out too.

The reinstall action uses the same versions of the installed free plugins. It doesn't update an old vulnerable release or prove that custom code, themes, uploads and the database are clean. Preserve evidence, involve the host or an incident specialist, identify the entry point and check the whole installation before declaring recovery complete.

Setup guide
  1. Back up files and the database, and verify independent hosting access.
  2. Install the current Security Optimizer by SiteGround plugin with slug sg-security and open its menu.
  3. Enable 2FA for administrators and editors, enroll with Google Authenticator, save backup codes and confirm a fresh login.
  4. Set one login-attempt policy. Save any custom login address and use Login Access only with a reliable IP and recovery plan.
  5. Review XML-RPC and feed requirements, confirm server-rule support with the host, and inspect logs and real site functions after each change.

Keep the chosen protection focused on your site's login and maintenance needs. Use the plugin directory to find separate features once access and recovery are in order.