WordPress 7.1.2: critical core security fix. Update now, then check inactive themes and comments.

Details

Security tests

Remove unwanted files

Use Security Ninja Pro’s daily cleanup to delete risky leftover files such as config backups and SQL dumps.

On Pro, Remove unwanted files runs a daily cleanup that deletes common leftover files from the WordPress root and matching backup dumps. The firewall can also block access to patterns like .bak and .sql when those rules are active.

Remove unwanted files

Enable it under Security Ninja → Fixes.

Files and patterns removed (5.303)

Exact names:

wp-config.php.old
Config backup: can contain credentials
wp-config.php_bak
Config backup: can contain credentials
wp-config.php~
Config backup: can contain credentials
wp-config.php-
Config backup: can contain credentials
wp-config.php--
Config backup: can contain credentials
wp-config.php---
Config backup: can contain credentials
wp-config.php.bkp
Config backup: can contain credentials
wp-config.php_revision
Config backup: can contain credentials
php_errorlog
May expose server details or errors
php_mail.log
May expose user details or errors
.htaccess.sg
SiteGround .htaccess backup
.htaccess_swift_backup
Swift Performance .htaccess backup
phpinfo.php
Exposes full PHP environment details
info.php
Dev leftover
test.php
Dev leftover

Wildcard cleanup:

*.sql
Database dumps
*.bak
Old file copies
deleteme.wp*.php
Installer leftovers

This cleanup does not replace deleting readme.html yourself. See Secure or remove readme.html.

Related: Fixes overview.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image