Skip to content
Cybersecurity

WordPress hardening: the security checklist we apply to every website

Most hacked WordPress sites were not attacked by geniuses: they were found by a bot looking for a door left open. Here is how we close them, one by one.

Team Cloudita

2 min read

Illustrazione: Hardening WordPress: la checklist di sicurezza che applichiamo a ogni sito

Looking at the logs of any WordPress site exposed to the internet you see the same scene every day: hundreds of automated requests looking for forgotten files, login panels, vulnerable plugins. They are not targeted attacks. They are bots trying every door, waiting to find one open.

*Hardening* means closing those doors before someone finds them. This is the checklist we apply to the websites we manage. We are on the defenders’ side: we share it because more secure websites mean less room for attackers.

Updates

  • Core, plugins and theme always up to date. It is the measure with the best cost-benefit ratio, period. Minor core updates apply automatically.
  • As few plugins as possible. Every plugin is third-party code. Unused ones must be uninstalled, not just deactivated.
  • No “nulled” themes or plugins. They are one of the most common sources of backdoors.

Access

  • Two-factor authentication for every administrator, even better with passkeys.
  • Unpredictable usernames for administrators (“admin” is the first one bots try).
  • Login attempt limits, right at the web server level: on our servers repeated login requests are slowed down before they even reach PHP.
  • Minimal roles: whoever writes articles does not need to be an administrator.

Server and files

  • HTTPS everywhere, with HSTS.
  • Correct file permissions: files must not be writable by anyone.
  • File editing from the admin disabled (DISALLOW_FILE_EDIT): if an account gets stolen, at least it cannot rewrite the code from the dashboard.
  • PHP execution blocked in the uploads folder: an uploaded file must not be executable.
  • Supported PHP versions: unsupported ones no longer receive fixes.

Security headers

A few lines of configuration that browsers respect: Strict-Transport-Security, X-Content-Type-Options, Referrer-Policy, a Content-Security-Policy suited to the site, Permissions-Policy. They reduce the impact of many browser-side vulnerabilities.

Backup and restore

Daily automatic backups, stored off the website’s server and tested periodically. The details are in the article on the 3-2-1 rule.

Monitoring

  • alerts when a vulnerability comes out for an installed plugin;
  • a periodic check of the administrator list;
  • reading the logs when something does not add up.

Security is not a product you install: it is a habit. A website looked after every month is far safer than a website with ten security plugins and nobody watching it.

If you want your website checked against this list, write to us: we will send you a clear report with priorities.

Sources

  1. WordPress.org: Hardening WordPress

Let's talk

Got a website, a software project or a security question? A real person will get back to you.

Write to us

Keep reading

All articles

Music: "Tech Corporate Startup Promo With Bright Drive" by Alex Morgan, CC BY 4.0 licence. Satellite imagery Esri, Maxar.