Part of Datorkirurgen AB – IT experts across Sweden

To harden WordPress means to close the common ways in before an attacker finds them. Business IT Support reviews and secures WordPress sites for businesses, from updates and users to file permissions, backups and monitoring.

Why attackers target WordPress

WordPress runs a large share of all websites in the world. As a result, automated tools scan the internet around the clock for known vulnerabilities in WordPress, themes and plugins. Most attacks are therefore not personal: the bots simply try every site they find.

Moreover, many sites run outdated plugins, weak passwords or forgotten test files. For that reason, a few well-chosen measures stop the vast majority of attacks. In other words, you do not need to be a large company to need protection.

Automatic plugin updates used to harden WordPress
Automatic plugin updates in WordPress. This is how Business IT Support keeps WordPress sites current.

Harden WordPress with updates, plugins and users

First of all, WordPress, themes and plugins need regular updates. We enable automatic updates for minor releases and security fixes, and we test larger updates on a copy first. In addition, we remove every plugin and theme that the site does not use, because inactive code can still contain vulnerabilities.

Similarly, users need the same discipline. Each person gets their own account with the lowest role that works, a strong password and two-factor authentication. Furthermore, we remove accounts for former staff and suppliers at once.

Review of plugin folders when we harden WordPress
Review of the plugin folders in WordPress. Unused plugins disappear, because inactive code can still be attacked.

wp-config, file permissions and hidden folders

In particular, the file wp-config.php contains the database password and the security keys. Therefore, it needs strict permissions, and we block direct web access to it. We also turn off the built-in file editor, so an attacker with a stolen login cannot change PHP files from the dashboard.

Next, we set correct permissions on folders and files and block PHP execution in the uploads folder. In addition, we remove backups, test scripts and old files from the web root, since attackers search for such files automatically.

WordPress user list reviewed when we harden WordPress
The WordPress user list. Every account gets the lowest role that works and two-factor authentication.
Settings in wp-config.php with the table prefix
Settings in wp-config.php. The file needs strict permissions and blocked web access.

Backup, monitoring and recovery

Even a hardened site needs a way back. For that reason, we take daily backups of files and database and store them outside the server. We also test a restore regularly, so we know that the copies work.

Finally, monitoring completes the protection. For example, we watch for file changes, new administrators, failed logins and unusual server load. As a result, we can act within minutes if something happens, instead of discovering it weeks later through Google.

In addition, we review the hosting environment itself. For instance, PHP should run a supported version, the server should receive security updates and only necessary ports should be open. Because many attacks target the server rather than WordPress, this step often matters as much as the plugins. As a result, the whole chain becomes harder to break.

WordPress front page after a completed hardening
The front page of a WordPress site after the work. A hardened site keeps working while the attack surface shrinks.

Contact Datorkirurgen AB to harden WordPress

Business IT Support is part of Datorkirurgen AB, which has more than 30 years of experience in IT for businesses. We harden, monitor and support WordPress sites for companies remotely anywhere, and on site in Stockholm and across Sweden.

In addition, our prices start at €250 per hour excluding VAT, or as agreed, and we guarantee to solve the problem. WordPress gives further advice in its WordPress hardening guide. Contact us, and we will start with a security review of your site.

Frequently asked questions about how to harden WordPress

Questions on how to harden WordPress

Files, server and configuration

Backup, monitoring and support

Website developed by Datorkirurgen AB · Privacy policy