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.
How to install Security Optimizer
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Security Optimizer” and pick the one by SiteGround.
- 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 --activateRequirements: 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.
// 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' );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.