WordPress runs a huge share of business websites in Dubai and across the UAE, which also makes it a constant target for automated attacks. Most hacked sites are not targeted personally. A bot finds an outdated plugin or a weak password and gets in. The good news is that a small set of habits blocks the large majority of these attacks. This checklist is written for UAE business owners and the developers who look after their sites.
Why WordPress sites get hacked
Almost every compromise comes from one of these:
- Outdated plugins or themes with a known vulnerability.
- Weak or reused passwords on admin accounts.
- Nulled (pirated) themes and plugins that arrive with malware built in.
- Cheap shared hosting where one infected site can affect its neighbours.
- No backups, so a small incident becomes a disaster.
WordPress core itself is rarely the problem. The surrounding code and the way the site is managed usually are.
1. Keep everything updated
Update WordPress core, themes and plugins regularly, ideally weekly. Security fixes are published openly, and attackers scan for sites that have not applied them yet. Before updating a busy site, take a backup and test on a staging copy if the site takes orders or bookings.
2. Remove what you do not use
Every installed plugin is code that can have a flaw. Delete inactive plugins and themes rather than leaving them deactivated. Prefer well-maintained plugins with recent updates and a large user base, and avoid anything abandoned.
3. Never use nulled themes or plugins
Free copies of paid products often contain hidden backdoors. Buy licences from the official source. The cost of a licence is small next to the cost of cleaning a hacked site.
4. Lock down logins
- Use strong, unique passwords stored in a password manager.
- Turn on two-factor authentication for every administrator.
- Do not use
adminas a username. - Limit login attempts, or add a CAPTCHA to the login form.
- Give each person their own account with the lowest role they need. Not everyone needs to be an administrator.
5. Use HTTPS everywhere
Every site should have a valid SSL certificate and redirect HTTP to HTTPS. This protects logins and customer form data, and browsers warn visitors about sites without it.
6. Choose better hosting
Hosting matters more than any security plugin. Look for a provider that offers:
- Automatic daily backups stored away from the server.
- A web application firewall.
- Current PHP versions with regular patching.
- Isolation between accounts, not a shared pool of sites.
If your customers are mainly in the UAE, a data centre in the region also helps speed.
7. Add a firewall
A web application firewall filters malicious traffic before it reaches WordPress. This can be a plugin or, better, a service in front of the site such as a CDN with firewall rules. It also helps absorb bot traffic and brute-force attempts.
8. Harden the configuration
A few changes make a real difference:
- Disable the built-in file editor by adding this line to
wp-config.php:
define('DISALLOW_FILE_EDIT', true);
- Block PHP execution inside the uploads folder.
- Set correct file permissions: files
644, folders755, andwp-config.phpstricter still. - Disable XML-RPC if you do not use it.
- Use a custom database table prefix on new installs.
9. Back up and test the restore
A backup you have never restored is only a hope. Keep daily backups of files and the database, store copies off the server, and try a restore on a test site at least once. For an online shop, take backups more often, because orders arrive all day.
10. Monitor the site
Set up uptime monitoring and security alerts so you hear about a problem from a tool, not from a customer. Watch for unexpected admin users, changed files and sudden traffic spikes.
Data protection in the UAE
If your site collects personal data through contact forms, bookings or checkout, the UAE's federal data protection law (PDPL) and the rules for your emirate or free zone may apply. Collect only what you need, explain how you use it in a privacy policy, and keep it secured. For anything legal, confirm the details with a qualified adviser.
What to do if your site is hacked
- Do not panic and do not delete everything. Keep evidence for diagnosis.
- Put the site in maintenance mode or take it offline.
- Change all passwords: WordPress, hosting, database, FTP and email.
- Restore from a clean backup taken before the infection, if you have one.
- Update everything, then find and remove the entry point. Otherwise it will happen again.
- Check for hidden admin users and unfamiliar files.
- Request a review in Google Search Console if the site was flagged as unsafe.
Final thoughts
WordPress security is mostly routine: update, remove what you do not need, use strong logins, back up, and monitor. None of it is complicated, but it has to be done consistently.
If you run a business website in Dubai or elsewhere in the UAE and want it audited, cleaned or hardened, you can get in touch and we can look at where it stands.
About the author
Ashiq S is a Full Stack Developer based in Dubai, working with Laravel, PHP, WordPress, WooCommerce, APIs, Docker and Linux. See his projects and experience. Hiring? See freelance Laravel development or full-stack roles in the UAE.