If your WordPress site is hacked or down, do not start by restoring it. Take it offline, write down what you see, snapshot the broken state, reset every login that touches the site and find out how far back your backups go. Those steps decide whether a restore fixes the problem or puts you straight back into it.
Restoration requests all start in a panic. The site shows a white screen. Google flags it as dangerous. The host has suspended the account for malware. Nobody can log into wp-admin. The symptoms differ, but the job is the same: something broke or someone got in, and a business is sitting offline. This is the checklist we work through, in order, based on WordPress's own guidance in FAQ: My site was hacked and what we see on Dubai sites.
Is it a hack, or is the site just down?
Check before you treat it as a security incident. WordPress lists the clear signs of a compromise: the site is flagged by Google or Bing, the host has disabled it, it is reported as distributing malware, antivirus tools warn visitors, you are told it is attacking other sites, or you see behaviour nobody authorised, such as new admin users.
| Symptom | More likely a hack | More likely a fault |
|---|---|---|
| Red browser warning or "This site may be hacked" in Google | Yes | |
| Host suspended the account "for malware" | Yes | |
| Unknown admin users, posts or pages in Japanese or pharma spam | Yes | |
| Redirects to other sites, but only on mobile or from Google | Yes | |
| White screen after an update | Plugin or PHP conflict | |
| "Error establishing a database connection" | Database server or credentials | |
| Site down after the host changed PHP version | Old theme or plugin | |
| SSL warning after renewal date | Expired certificate |
A fault still needs fixing, but it does not need the full clean-up below. If you are not sure, treat it as a hack.
What do you do in the first hour?
Nothing that changes content yet.
- Take the site offline or lock it down. A live hacked site keeps serving malware, keeps getting re-indexed with the bad content and can keep letting the attacker back in while you clean. A maintenance page or a host suspension stops the damage growing.
- Document. Write down what you are seeing, when you noticed it (with the time zone) and anything that changed recently: a new plugin, a theme edit, a new user. WordPress's guidance calls this the start of your incident report, and you will need it whether you fix the site yourself or hire someone.
- Snapshot the broken state. Copy the files, the database, the error and access logs, and a list of recently modified files. Even an infected copy matters if something goes wrong during the clean-up.
- Talk to the host. On shared hosting the problem may be wider than your site. Ask what they see, whether other accounts are affected, and how many days of backups they keep.
- Reset access. WordPress users (especially administrators), hosting panel, database, SFTP or SSH and any connected email account. Then regenerate the security keys in
wp-config.phpwith WordPress's key generator, which logs everyone out. - Scan your own computers. WordPress points out that many compromises start with stolen logins from an infected laptop. Run a full scan on every machine that logs into the site.
Should you restore from backup or clean the site?
Having a backup and being able to use it are different questions.
Restore from backup when:
- the backup clearly predates the incident, confirmed against access logs and file timestamps
- you have found the cause, and it is not still present in the current theme, plugins or server setup
- little has changed on the site since the backup was taken
Clean or rebuild when:
- the only backups contain the vulnerable plugin or theme, so restoring puts the hole back
- you cannot find how the attacker got in, which makes a blind restore a coin flip
- the backup itself is suspect, because some backup plugins copy an infected site for weeks before anyone notices
The restoration checklist, step by step
- Find the entry point. Read the access logs, list recently modified files and check the installed plugin and theme versions against known vulnerabilities around the incident date.
- Replace WordPress core cleanly. Download the same WordPress version the site runs and replace the
wp-adminandwp-includesfolders over SFTP. WordPress advises against using the dashboard's reinstall button for this, because it overwrites existing files and leaves added ones in place. - Check the usual hiding places. The
.htaccessfile (in the root and any subfolder), and the theme'sindex.php,header.php,footer.phpandfunctions.php. These run on every request, which is why attackers like them. - Replace plugins and the theme from clean sources. Reinstall each from the official source rather than trusting the files on the server.
- Check the database. Look for unknown administrator accounts, injected scripts in posts and widgets, and suspicious scheduled tasks.
- Remove what you do not use. Every inactive plugin and theme is code an attacker can still reach. Delete them.
- Update everything before going public. WordPress core, every plugin, the theme and PHP. Updating after relaunch leaves a window with the old hole open.
- Change the passwords again. WordPress is explicit on this: change them once when you discover the hack and again once the site is clean. Consider a new database user and password too.
- Scan, then scan again. Run a scanner straight after the clean-up and again a few days later. The second pass catches backdoors the first missed. WordPress's guide lists application scanners such as Wordfence, Sucuri, Quttera and GOTMLS, and remote checks such as Sucuri SiteCheck and VirusTotal.
- Clear the warnings. See the next section.
- Check email reputation. Hacked sites are often used to send spam, and mail blocklists can flag the server's IP. If your email shares a server with the website, move email to a dedicated provider.
- Put prevention in place. Off-site backups with longer retention, scheduled updates tested on staging, two-factor login for administrators and monitoring that alerts a person. WordPress's hardening guide covers file permissions and configuration.

How do you get rid of Google's hacked-site warning?
Google does not lift a flag on its own. Open the Security Issues report in Search Console, which lists hacked content (malware, code injection, content injection, URL injection) and deceptive pages. Fix every issue listed across the whole site, not just the pages named, then choose "Request review" and describe the problem, what you did and the result.
Google says reviews for malware and injected content can take from a few days to a few weeks. Do not resubmit while a request is pending; Google warns that it can lengthen the review or mark the site as a repeat offender. While you wait, use the URL removal tool for spam pages the attacker added, and submit an updated sitemap so Google recrawls the clean pages.
If your host suspended the account, it will have its own review. Ask what evidence it needs; usually a clean scan and a list of what changed.
When is migration a better fix than repair?
Sometimes the request says "restore my site" and the honest diagnosis is that the site needs to move. It is usually one of three patterns.
The host is the real problem
A site that keeps getting compromised on the same shared hosting, despite updated core, plugins and strong passwords, often has a server-level issue: a compromised neighbouring account, weak isolation between accounts or an outdated stack. WordPress currently recommends PHP 8.3 or newer and MariaDB 10.11+ or MySQL 8.4+. A host that cannot offer that is a reason to move.
The theme or plugins are past their support
A theme that has not been updated in years, on a PHP version its plugins no longer support, cannot be restored safely to how it was, because how it was is what got it broken. A scoped rebuild on a current stack usually costs less over a year than repeated restores. Our WordPress website development page explains how we build themes with a short plugin list, which removes most of the attack surface.
Recovery turns into a redesign
Many requests that start as "fix the hacked site" end with the owner deciding that, if sections are being rebuilt anyway, this is the time to fix the design too. That is a fair call, but it changes the scope and the timeline, and it should be agreed as such rather than letting a restoration quote quietly become a redesign.
What does a safe WordPress migration look like?
Migration has its own failure points, most of them after the files have moved. Our runbook:
- Lower the DNS TTL a day ahead so the switch takes effect quickly.
- Clean first, then copy. Never migrate an infected site; the infection moves with it.
- Build on staging at the new host, on PHP 8.3 or newer, with HTTPS from the start.
- Replace old URLs in the database with a serialisation-safe search and replace, not a plain text edit.
- Test the money paths: every form, the checkout if there is one, order and contact emails (sent through an authenticated mail service), and logins.
- Freeze content changes on the old site during the switch, or plan to re-copy orders and form entries made in between.
- Switch DNS, check SSL, then crawl the new site for broken links and missing images.
- Keep URLs identical, or map every changed URL to a 301 redirect.
- Check Search Console for coverage errors and submit the sitemap.
- Keep the old hosting for two weeks before cancelling, in case something was missed.
GoDesignTech lists what actually breaks during a website migration in more detail, and explains what website maintenance is actually for once the site is back.
How much does WordPress restoration cost?
It depends on how deep the damage goes, whether a clean backup exists and whether the database was touched, so we price it after a short review rather than guessing. If repair would cost more than starting clean, we tell you.
The prevention side has published prices. Our care plans cover updates, off-site backups that are restore-tested monthly, uptime and SSL monitoring and security patching: AED 550 (USD 150) a month for Essential, AED 1,100 (USD 300) for Growth Care with a staging site and developer hours, and AED 2,200 (USD 600) for Priority with a 4-hour response time and migration support. Cleaning a site that was already compromised when it reached us is quoted separately. If a rebuild is the better answer, our Launch Site starts at AED 4,900 (USD 1,335).
What should you have ready before you call anyone?
This shortens the diagnosis by a day or more, whoever you call:
- hosting control panel access, or the name of whoever has it
- WordPress administrator access, if it still works
- error messages, screenshots or the exact wording of a suspension notice
- your incident notes: when the site last worked and when the problem was first noticed
- whether a backup exists, where it is and how far back it goes
If the agency that built the site holds the hosting or the admin logins, our website ownership checks explain how to get them back, and our questions to ask a web agency help if you are choosing someone new.
Frequently asked questions
What should I do first if my WordPress site is hacked?
Take the site offline or put it behind a maintenance page, write down what you are seeing and when you first noticed it, copy the files, database and logs as they are, and reset every login that touches the site: WordPress users, hosting panel, database, SFTP or SSH and email. Then ask your host how many days of backups exist.
Can I just restore my WordPress site from a backup?
Only if the backup clearly predates the compromise and you have found and closed the way in. If the only backups contain the vulnerable plugin or theme, or the attacker had access for weeks before anyone noticed, restoring puts the hole back. Restore, then update everything before the site goes public again.
How long does it take to remove a Google hacked-site warning?
After the site is clean, request a review from the Security Issues report in Search Console and describe what you fixed. Google says reviews for malware and hacked content can take from a few days to a few weeks. Do not resubmit while a request is pending; it can slow the review down.
How much does it cost to restore a hacked WordPress site?
It depends on how deep the damage goes, whether a clean backup exists and whether the database was affected, so we price it after a short review. If repair would cost more than starting clean, we say so. Our care plans, which include tested backups, updates and monitoring, start at AED 550 a month; cleaning a site that was compromised before it reached us is quoted separately.
When should I migrate my WordPress site instead of repairing it?
When the same site keeps getting compromised on the same hosting, when the theme or key plugins are no longer maintained, or when the server runs a PHP version the current plugins do not support. Restoring onto the same setup resets the clock; moving to a current, isolated environment removes the cause.
How do I stop my WordPress site being hacked again?
Keep WordPress, plugins, the theme and PHP updated, delete plugins and themes you do not use, use long unique passwords with two-factor login for administrators, keep off-site backups that are test-restored, and have monitoring that alerts a person. Most repeat incidents happen because nothing changed after the first one.
Get your site back online
Send us the site address, what you are seeing and whether you have hosting access. We reply within one business day with a diagnosis, the fix we recommend and a price. Contact us or send us a message.




