It usually starts with a message from a customer: “I clicked your website and it sent me to a strange page.” Or Google suddenly shows “This site may be hacked” under your listing. Or Chrome displays a red warning before anyone can reach your homepage. Searching your company name reveals pages you never created, in languages you do not use, selling products you have nothing to do with.
A hacked website is stressful because it affects everything at once: your reputation, your leads, your search rankings and sometimes your customers’ safety. The good news is that hacked WordPress site recovery follows a clear order of steps, and most sites can be fully restored when that order is respected. This guide is written for business owners, not security specialists. It explains what to do first, what to ask your developer or host, how to remove Google’s warnings, and how to stop the same thing from happening again.
First Signs: How to Know Your Site Has Been Hacked
Common symptoms include:
- Redirects to gambling, adult, pharmacy or scam websites, often only on mobile or only when visitors come from Google.
- Spam pages in Google under your domain, for example in Japanese or with product names you do not sell, sometimes called the Japanese keyword hack or pharma hack.
- Google or Chrome warnings, such as “This site may be hacked” in search results or a red “Dangerous site” page in the browser.
- New admin users you did not create, or your own login no longer working.
- Hosting warnings about suspicious files, high resource use or suspended accounts.
- Emails sent from your domain that you did not send, or your domain appearing on spam blacklists.
- A sudden traffic drop or a flood of new pages in Search Console’s indexing reports.
If you see any of these, assume the site is compromised until proven otherwise. Do not wait for it to “fix itself.”
Website Hacked? What to Do in the First Hour
The first hour is about containment, not cleaning. Rushed changes at this stage often destroy evidence or leave backdoors in place.
- Do not panic-delete files. Deleting random files can break the site while leaving the real infection behind.
- Inform your host or developer immediately. If you have a maintenance provider, this is exactly what they are for.
- Take the site offline or into maintenance mode if it is harming visitors, for example by redirecting them to scams or serving malware. Your host can often restrict access while work is done.
- Take a full backup of the hacked site, files and database, and label it clearly. This is not for restoring; it is a record that helps identify what happened.
- Change critical passwords from a clean device: hosting control panel, WordPress admin accounts, database, FTP or SFTP, and the email account linked to the domain.
- Check Search Console’s Security issues report to see what Google has detected.
- Avoid browsing infected pages from your main work computer while you investigate.
If your website processes payments or stores customer data, also consider whether customers need to be informed and whether data protection rules apply in your markets. Lebanon, Saudi Arabia, the UAE and the EU all have rules on personal data; take legal advice if customer information may have been exposed.
Step 1: Assess the Damage
Before cleaning, understand the scope. A professional assessment usually covers:
- Which files have changed: core WordPress files, theme files, plugins and uploads.
- The database: injected links, spam posts, suspicious options and unknown admin users.
- Spam pages and redirects, including rules hidden in configuration files.
- Other sites on the same hosting account, since one infected site can infect its neighbours on shared hosting.
- When the hack happened, using server logs and file modification dates. This tells you which backups are likely to be clean.
Malware scanners and your host’s security tools help here, but automated scans alone often miss backdoors, the hidden files attackers leave to regain access later.
Step 2: Clean the Site, or Restore a Clean Backup
This is the core of hacked WordPress site recovery. There are two main routes for WordPress malware removal.
Option A: Restore a Clean Backup
If you have a backup from before the infection, restoring it is often the fastest route. The difficulty is knowing which backup is clean. Attackers sometimes remain hidden for weeks before acting. Restore only a backup you are confident predates the compromise, then apply all updates immediately and close the entry point (Step 3), or the site will be reinfected. Our website backup strategy explains how to keep backups that make recovery possible.
Option B: Clean the Existing Site
When no clean backup exists, the site must be cleaned. A thorough cleaning usually involves:
- Replacing WordPress core files with fresh copies of the same version.
- Reinstalling themes and plugins from their official sources, rather than trying to clean each file.
- Inspecting the uploads folder for executable files, which should not be there.
- Cleaning the database of injected scripts, spam content and unknown admin users.
- Removing malicious redirect rules and checking configuration files.
- Deleting spam pages created by the attacker.
This is technical work. If you are not confident, hire someone who does it regularly; a partial clean-up usually leads to reinfection within days.
Step 3: Close the Entry Point
Cleaning without fixing the cause is the most common mistake in hacked WordPress site recovery. Attackers typically get in through:
- Outdated plugins or themes with known vulnerabilities.
- Nulled (pirated) themes and plugins, which are common in the region and often contain hidden malware from the start.
- Weak or reused passwords, especially for admin and hosting accounts.
- Abandoned plugins that no longer receive security updates.
- Insecure shared hosting where another compromised site affects yours.
- Compromised devices of people who log in to the site.
Update everything, remove unused and abandoned plugins and themes, replace any nulled software with licensed versions, remove unknown users, and enforce strong passwords with two-factor authentication. Also rotate the WordPress security keys and salts in the configuration file, which forces every logged-in session to end.
Step 4: Remove the Google Hacked Site Warning
Once the site is clean and the entry point is closed, deal with search engines.
Use the Security Issues Report
In Google Search Console, open Security & Manual Actions → Security issues. The report lists issues such as hacked content, malware, code injection or URL injection, often with sample URLs. Check these samples to confirm they are fixed.
Request a Review
When every listed issue is fixed across the whole site, select Request Review. Google’s guidance is clear: partial fixes will not restore visibility. Your request should explain the problem, describe what you fixed and document the results.
According to Google, most security reviews take from a few days to a few weeks. Do not submit a new request while one is pending, and do not request a review before the site is fully fixed: doing so can lengthen later reviews or mark your site as a repeat offender. Once the review succeeds, the Google hacked site warning should be removed from search results and browser warnings should stop.
Clean Up Search Results
Spam pages created during the hack may remain in Google’s index for a while. Make sure those URLs now return a 404 or 410 status rather than your homepage, and use Search Console’s Removals tool to hide the most visible ones temporarily while Google recrawls. Check your XML sitemap to ensure it contains only your real pages. Our guide to fixing a website not indexed by Google explains how to monitor indexing afterwards.
If rankings dropped during the incident, our guide to diagnosing an organic traffic drop can help you track the recovery.
Step 5: Check Email and Blacklists
Hacked sites are often used to send spam, which can put your domain or server IP on email blacklists. Check your domain and mail server against common blacklists, review your email authentication records, and ask your host whether the server’s IP was affected. If customers report suspicious emails from you, warn them clearly not to click any links.
Step 6: Harden the Site So It Does Not Happen Again
Restoring a hacked website is only half the job. Prevention keeps it from becoming a recurring problem:
- Keep WordPress, themes and plugins updated, ideally on a schedule with testing.
- Use fewer plugins, from reputable developers, and never nulled software.
- Enforce strong passwords and two-factor authentication for every admin.
- Limit admin accounts and give each person the lowest role they need.
- Use a web application firewall and a malware scanner.
- Keep automated off-site backups and test restoring them.
- Choose secure, well-managed hosting that isolates sites and patches servers. Our comparison of managed vs unmanaged hosting explains the difference.
- Monitor uptime, file changes and Search Console alerts.
A regular website maintenance plan covers most of these tasks and is usually far cheaper than emergency recovery. Our earlier guide to website hosting security best practices adds more preventive detail, and our WordPress SEO checklist includes security alongside SEO settings.

DIY or Professional Help?
Some business owners with technical experience can handle a simple infection themselves, especially when a clean, recent backup exists. Professional help for hacked WordPress site recovery makes sense when:
- There is no reliable clean backup, so the site has to be cleaned file by file.
- The site has been reinfected after a previous clean-up, which usually means a backdoor was missed.
- Customer data or payments may be affected, raising legal and reputational stakes.
- Google or Chrome warnings are already visible, so every day of delay costs leads.
- Several sites share the same hosting account, and all of them need checking.
When you hire help, ask how they will find the entry point, whether they will check for backdoors, how they will handle Google’s review and what monitoring they offer afterwards. A provider that only “runs a scan” is rarely enough to restore a hacked website for good.
Keep a Simple Incident Record
After recovery, write down what happened: when it was discovered, the symptoms, the entry point, what was cleaned, who was involved, and when Google’s review was approved. This record helps if the problem returns, supports any reporting obligations, and shows clearly what needs to change in your maintenance process.
Frequently Asked Questions
Contain the problem: inform your host or developer, take a backup of the hacked site for investigation, change all critical passwords from a clean device, restrict access if visitors are being harmed, and check Search Console’s Security issues report. Do not start deleting files at random.
Cleaning a typical business site can take from a few hours to a few days, depending on the infection and the availability of clean backups. Google’s security review then usually takes from a few days to a few weeks.
Fix every issue across the whole site, close the entry point, then select Request Review in Search Console’s Security issues report and explain what you fixed. Once Google approves the review, the warning should disappear.
Yes, if the backup predates the infection. Restore it, update everything immediately and close the entry point, otherwise the site is likely to be reinfected.
Keep everything updated, avoid nulled themes and plugins, use strong passwords with two-factor authentication, limit admin accounts, use a firewall and scanner, keep tested backups and choose secure hosting. A maintenance plan handles most of this for you.
Get Back Online, and Stay Safe
A hacked site feels like an emergency, and it is. But hacked WordPress site recovery is manageable when you follow the right order: contain, assess, clean, close the entry point, request Google’s review and harden the site. The businesses that recover fastest are those with clean backups, updated software and someone responsible for maintenance.
If your WordPress site has been hacked, or you want to make sure it never is, the Creative 4 All hosting and maintenance team can clean the site, restore it, remove search warnings and move it to secure, managed hosting with ongoing monitoring. Explore our web hosting and domain services in Lebanon and get a hosting or migration quote through the form or on WhatsApp.


