Security Optimizer icon
Security

Security Optimizer

Secure your WordPress site from brute-force attacks, threats, malware, and bots. Free to use and easy to set up.

  • By SiteGround
  • v1.7.0 New
  • Updated

Overview

Security Optimizer describes itself as: “Secure your WordPress site from brute-force attacks, threats, malware, and bots. Free to use and easy to set up.”

It is active on 1+ million WordPress sites and rated 4.5 out of 5 by 158 users on WordPress.org. Developers can extend it through 4 actions and 10 filters, listed below.

We haven't published a hands-on review of Security Optimizer yet. Want one, or need help with it? Send us a request.

How to install Security Optimizer

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Security Optimizer” and pick the one by SiteGround.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install sg-security --activate

Requirements: WordPress 4.7+ · PHP 7.0+ · tested up to WordPress 7.1.4

Hooks & customisation

Security Optimizer 1.7.0 fires 4 actions and 10 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

sg-security — top hooks
// Filters the title tag content for login page.
apply_filters( 'login_title', $login_title, $title );

// Filter in core/Sg_2fa/Sg_2fa.php
apply_filters( 'sg_security_2fa_do_not_challenge', true );

// Action in core/Sg_2fa/Sg_2fa.php
do_action( 'sg_security_2fa_login_failed' );

// Action in core/Sg_2fa/Sg_2fa.php
do_action( 'sg_security_2fa_login_success' );

// Action in core/Sg_2fa/Sg_2fa.php
do_action( 'sg_security_before_2fa_login' );

// Action in core/Sg_2fa/Sg_2fa.php
do_action( 'login_footer' );

Browse all 14 hooks with examples →

Need Security Optimizer customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with SiteGround. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Security

See all →

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Reviewed 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs 7 hooks