Hardening¶
Each measure has its own switch. Before switching one on, OG Ai Security backs up what it changes, then tests the site afterwards; if the test fails, it undoes the change by itself. Undo puts everything back.
The measures¶
| Measure | Risk | Edition | What it does |
|---|---|---|---|
| Turn off XML-RPC | Low | Lite + Pro | Stops password guessing and pingback attacks through xmlrpc.php. Jetpack and the WordPress mobile app need it. |
| Hide user names from the REST API | Low | Lite + Pro | Visitors who are not signed in can no longer list user names at /wp-json/wp/v2/users. |
| Hide the WordPress version | Low | Lite + Pro | Removes the generator tag and the version number from core files. |
| Turn off the file editor | Low | Lite + Pro | Removes the Plugin and Theme File Editor, so a stolen admin account cannot write code. |
| Block PHP in uploads | Low | Lite + Pro | PHP files in the uploads folder can no longer run, which stops most uploaded backdoors. |
| Block sensitive files | Low | Lite + Pro | Blocks web access to wp-config backups, readme.html, license.txt, debug.log, .sql and .bak files. |
| Turn off folder listing | Low | Lite + Pro | Folders without an index page no longer show their files. |
| Security headers | Low | Lite + Pro | Sends X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. |
| Block author scans | Low | Lite + Pro | Stops ?author=1 from revealing user names to visitors. |
| Strict HTTPS (HSTS) | Medium | Pro | Tells browsers to use HTTPS only, for a year. Browsers remember this even after Undo. |
| Safe role for new sign-ups | Low | Pro | New accounts get the Subscriber (or Customer) role, never an admin or editor role. |
| HTTPS-only admin cookies | Medium | Pro | Adds FORCE_SSL_ADMIN to wp-config.php. |
| New security keys (salts) | High | Pro | Replaces the keys in wp-config.php. Everyone, you included, is signed out. Runs once; "Last done" shows when. |
| Lock wp-config.php permissions | Medium | Pro | Makes wp-config.php unreadable to other users on the server. |
| Auto-update plugins with exploited holes | Medium | Pro | Turns on WordPress auto-updates for plugins with a hole being exploited now. |
Apply all (Pro)¶
Three buttons switch on many measures at once: Apply all low-risk, Apply all low + medium and Apply all low, medium + high. Measures that are already on, or cannot be used on this server, are skipped.
On since¶
A card that is on shows On since and the date. That includes measures already in place through other code on your site, a server setting or wp-config.php: they show the date OG Ai Security first saw them working, and hovering over it shows how they are set. There is nothing for OG Ai Security to undo on those.
Server notes¶
- Measures that write
.htaccessneed Apache or LiteSpeed. Rules are wrapped in# BEGIN OG Ai Security - <id>markers. - On OpenLiteSpeed,
.htaccessis only read after a web server restart. The card shows Restart the web server, then test; restart it, then press Test. - On LiteSpeed, folder listing is a server setting; the scan checks it instead.
- If the web server cannot write
.htaccessor wp-config.php, the card says so instead of offering the switch.