Short answer. Website hardening reduces the ways into your site and limits the damage if someone gets in. For a WordPress site in Dubai, or anywhere else, the official WordPress documentation reduces it to a short list: stay updated, authenticate strongly, lock down files, database and configuration, keep plugins few and trusted, and keep backups, logs and file monitoring you can rely on. If malware is already on the site, the order of steps matters more than the tools.
The WordPress Hardening guide states the goal plainly: security is “risk reduction, not risk elimination”. It organises the work around four ideas: limiting access, containment, preparation and knowledge, and trusted sources.
What does a WordPress hardening checklist include?
Updates and sources
- Keep WordPress core up to date; older versions are not maintained with security updates. Automatic updates have existed since version 3.7.
- Download WordPress only from wordpress.org, and themes and plugins only from the WordPress.org repository or well known companies.
- Delete plugins you do not use, and keep the rest updated.
Access
- Strong, unique passwords for every account, and two-step authentication for logins.
- Avoid easily guessed administrator usernames such as admin.
- Connect to the server with SFTP rather than FTP.
- Consider server side password protection for /wp-admin/ as a second layer, and require HTTPS for administration. The documentation warns that protecting wp-admin can break the AJAX handler, so test it.
- Keep the computers used to manage the site free of malware; a keylogger defeats every other control.
Containment on the server
- File permissions: core files and plugins writable only by your user account; only what must be writable, such as uploads, writable by the web server.
- Give the database user only the read and write privileges WordPress needs for normal operation, and separate databases with separate users for separate sites. The documentation warns that some updates need structural privileges, so plan for that and keep tested backups first.
- Protect wp-config.php: readable only by you and the web server, access denied in the web server configuration, and optionally moved one level above the web root.
- Block direct access to include-only scripts in wp-includes.
- Disable file editing in the dashboard with
define( 'DISALLOW_FILE_EDIT', true );. The documentation notes that dashboard editing is often the first tool an attacker uses after logging in. - Avoid plugins that execute arbitrary code from the database.
Filtering
- A firewall can run as a plugin, at the web server, or as a service in front of the hosting server. Each layer filters at a different point.
Preparation
- Regular backups of files and database in a trusted location, with integrity checks such as hashes or read-only media. Keeping snapshots over time means you still hold a clean copy if a compromise is detected late.
- Logs on the server that let you reconstruct actions, and monitoring of file changes with alerts, especially for executable files such as .php.
- Ask your host which security measures it takes, particularly on shared hosting, where a compromise of another site on the server can reach yours.
What should you do after a malware compromise?
The WordPress FAQ “My site was hacked” sets out a sequence. In short:
- Document. What you see, when you noticed it, and what changed recently: a new plugin, theme or widget. This becomes the incident report.
- Scan the site and your own computers. Infections often start with stolen credentials from a local machine.
- Talk to your host. On shared hosting the compromise may reach beyond your site, and the host can confirm whether it is a hack or an outage.
- Lock down access. Force a password reset for all users, rotate the secret keys in wp-config.php to log everyone out, and change every access point: SFTP, the hosting panel, the WordPress admin and the database.
- Back up before cleaning. Restore from a clean backup if you have one, and take a snapshot of the infected state before you start.
- Clean. Reinstall core, themes and plugins at the same versions from trusted sources, and check .htaccess and other files that affect every request.
- Update and change passwords again once the site is clean.
- Find the entry point. Forensics tells you how the attacker got in, so the hole is closed rather than just the symptom.
Then harden the site with the checklist above. If the site holds personal data, check your notification duties under the data protection law that applies to you; our UAE PDPL guide covers the federal law.
What does Krasper do, and what not?
Krasper does not remove malware or clean compromised sites, and does not resell hosting, plugins or monitoring. The clean up is work for your web agency, your host or a specialist you choose.
What Krasper does is website security: we review how the site, server, accounts and backups are set up, specify the hardening from the checklist above for your platform, and verify each control once your agency or IT provider has put it in place. After an incident, we review whether the entry point is closed and the hardening holds before you rely on the site again. It runs as a one off hardening review or as a recurring verification cycle. Email domains are part of the same picture; see the email authentication audit for SPF, DKIM and DMARC.