Platforms ·
WordPress security: the hardening steps every business site needs
Updates, plugins, logins, backups, firewalls and monitoring: the WordPress hardening steps I apply to business sites, and what to do if one is hacked.
By Kareem Mohamed, Web Developer at Digital House
WordPress security is mostly a matter of discipline rather than clever tools. Below are the hardening steps I apply to business sites, roughly in the order they matter, written so a marketing manager can check them against their own site or ask their developer the right questions.
WordPress core has a dedicated security team and receives security releases regularly. In my experience, when a business site gets into trouble the cause is almost always around the core: an old plugin, a reused password, a forgotten admin account or a backup that was never tested.
Updates and plugins: where most problems start
Every plugin is code written by someone else, running with broad access to your site. That is no reason to avoid plugins, but it is a reason to choose them carefully and keep the list short.
- Update promptly. Core, theme and plugins, with security releases applied within days rather than months. Test larger updates on a staging copy first.
- Delete what you do not use. A deactivated plugin’s files still sit on the server. Remove them.
- Avoid abandoned plugins. If a plugin has not been updated in a long time, or has been closed in the official directory, replace it.
- Never install nulled themes or plugins. Pirated copies of premium products are a known route for malware, and they never receive updates.
- Prefer fewer, well-maintained tools. One reputable plugin that does three jobs is usually safer than three small ones.
A steady rhythm works better than bursts of activity: security releases straight away, everything else in a monthly batch after a check on staging. WordPress applies minor core updates automatically by default, and that setting is worth leaving on.
Logins, users and passwords
The login page is the most attacked part of any WordPress site, because bots try common usernames and leaked passwords around the clock. A few settings close most of that door.
- Use a long, unique password for every administrator, kept in a password manager.
- Turn on two-factor authentication for every account that can publish or change settings.
- Limit repeated failed logins, through your host, a firewall or a plugin.
- Give people the lowest role they need: most marketing staff need Editor or Author, not Administrator.
- Remove accounts for agencies, freelancers and staff who have moved on.
- Review application passwords and API keys created for integrations, and revoke any you do not recognise.
Choosing a username other than “admin” helps a little, but it is no substitute for strong passwords and two-factor authentication.

Hosting, HTTPS and server settings
Good hosting does a lot of security work you never see: isolating your site from others on the server, running a supported version of PHP (the language WordPress is written in), and blocking obvious attacks before they arrive. Choosing web hosting for a UAE business covers what to ask a host.
Three questions worth asking any host: how are sites isolated from each other, how quickly is PHP kept up to date, and are their backups stored separately from your site?
A couple of lines in WordPress’s configuration file also help. The first stops anyone who gets into the dashboard from editing theme and plugin code there; the second forces the admin area onto HTTPS.
// wp-config.php
define( 'DISALLOW_FILE_EDIT', true );
define( 'FORCE_SSL_ADMIN', true );
Make sure the whole site runs on HTTPS with a valid certificate. If the padlock is a mystery, HTTPS, SSL and the padlock explains it without jargon.
Firewalls, scanning and monitoring
A web application firewall (WAF) filters traffic before it reaches WordPress, blocking known attack patterns, bad bots and floods of login attempts. It can run at your host or CDN, or as a plugin inside WordPress. A firewall in front of the server is usually the better option, because it stops bad requests before your site does any work.
If almost all your customers are in the GCC, some firewalls let you add extra checks or rate limits to login attempts from elsewhere, which cuts a great deal of noise without affecting real visitors.
Pair it with a malware scanner that checks files for changes and known infections, uptime monitoring that alerts you when the site goes down, and alerts for new administrator accounts. None of these prevent attacks; they shorten the time between a problem starting and someone noticing.
Forms and the data they collect
Contact and enquiry forms are an entry point too. Protect them from spam with a honeypot field or a CAPTCHA, limit what file types can be uploaded, and think about how long submissions are stored. If a form collects personal details, email them to the right person, keep what you need in your CRM, and do not leave years of enquiries sitting in the WordPress database.
Backups you have actually restored
A backup is only useful if it restores. Keep automatic daily backups of both the files and the database, store copies away from the hosting server, and keep enough history to go back to a point before an infection began, since some are only noticed weeks later.
Then test it by restoring a backup to a staging site a few times a year. My backup plan that actually restores sets out a simple routine.
What should you do if your WordPress site is hacked?
- Take a copy of the site as it is, for investigation, before changing anything.
- Change every password: WordPress users, hosting, database, FTP and email.
- Restore a clean backup from before the infection, or have a developer clean the files.
- Update everything, then find and close the way the attacker got in, or it will happen again.
- Check Google Search Console for security warnings, and request a review once the site is clean.
- If customer data may have been exposed, take advice on your obligations; the UAE and Saudi Arabia both have personal data protection laws.
Security is one part of ongoing care; website maintenance covers the rest, and the website security checklist applies to any platform. For more WordPress detail, the official hardening guide is worth bookmarking. If you are still choosing a platform, security effort is one of the trade-offs in WordPress or a custom website.
A secure WordPress site is mostly a well-kept one. The unglamorous habits do most of the work.