Category: Hack Recovery & Malware

Emergency step-by-step recovery guides on identifying, isolating, and completely cleaning infected WordPress files, malicious redirect hacks, Japanese SEO spam, and Google search blacklist warnings.

  • WordPress site redirecting to spam? How to find and remove it

    A customer tells you that your website sent them to a gambling site, a page selling pills or a “you have won a prize” page. You open your site and it looks normal. You log in and the dashboard looks normal too.

    This is one of the most common hacks on small WordPress sites. It is called a redirect hack. This guide explains why you often can’t see it, how to check for it, where the bad code usually hides, and how to remove it so it does not come back.

    Why you can’t see the redirect

    Redirect hacks are built to stay hidden from the owner. The bad code checks who is visiting before it sends anyone away. It often only redirects:

    • visitors on a phone, not on a computer
    • visitors who arrive from Google, not people who type your address
    • the first visit from each device, so a second try looks fine
    • visitors who are not logged in to WordPress

    So the owner, who is logged in on a laptop and types the address, sees a normal site. A customer who taps your site in Google on their phone lands on spam. That is why many owners first hear about it from a customer, or from a Google warning.

    First, rule out a normal redirect

    Not every redirect is a hack. Check these before you assume the worst:

    • A redirect plugin. If you or your web designer use a plugin to send old pages to new ones, a wrong rule can send people to the wrong place. It will send them to another page on your own site or a site you know, not to spam.
    • The site address settings. In Settings > General, check that “WordPress Address” and “Site Address” both show your own domain. If either shows a domain you don’t know, that is a hack.
    • An expired domain. If your domain expired, visitors may see a parking page full of ads. Check the renewal date with your domain company.

    If visitors land on gambling, adult, pill, crypto, fake prize or fake shop pages, treat it as a hack.

    How to check if your site is redirecting

    You can do these checks in about 10 minutes:

    1. Use your phone on mobile data. Turn off Wi-Fi, open Google, search for your business name and tap your site in the results. Try two or three different pages.
    2. Use a private window on your computer. Open a private or incognito window, search for your site in Google and click the result. Being logged out matters.
    3. Search Google for site:yourdomain.com (with your own domain). Look for pages you never made, or titles in other languages. Our guide on the Japanese keyword hack covers this sign.
    4. Check Google Search Console. Open Security & Manual Actions > Security issues. Google lists harmful content it has found on your site there.
    5. Run a free online scanner. It checks your site from the outside, the way a visitor sees it. A clean result does not prove the site is clean, because some redirects hide from scanners too.

    If Chrome shows visitors a red screen with “Deceptive site ahead”, read our guide on the Deceptive site ahead warning as well. For the other signs of a hack, see Is my WordPress site hacked?

    Where the redirect code usually hides

    The redirect is rarely in one place. Attackers usually add it in several spots, so that deleting one copy does not stop it. Common places:

    • The .htaccess file. Rules that send visitors from Google or from phones to another site.
    • Theme files. Code added to files like header.php or functions.php, or to the theme’s JavaScript files.
    • WordPress core files. Code added to files like index.php or wp-config.php.
    • The database. Scripts hidden inside posts, pages, widgets or settings. The site address settings can also be changed here.
    • A fake plugin. A plugin with a normal-looking name that you never installed. Some hide from the plugin list.
    • The uploads folder. Code files hidden among your images. Only images and documents belong there.

    On top of the redirect, attackers usually leave a backdoor: a hidden file or a hidden admin user that lets them back in.

    Why it keeps coming back

    Many owners delete the code they find, or install a security plugin and run one scan. A few days later the redirect is back. This happens for three reasons:

    • One copy of the code was removed, but others were missed.
    • The backdoor is still there, so the attacker comes back and adds the code again.
    • The way in is still open. On small business sites it is usually a plugin or theme that was not updated, or a weak or reused password.

    A proper fix deals with all three.

    How to remove the redirect hack

    Work through these steps in order.

    Step 1. Make a copy of the site as it is now

    Back up the files and the database before you change anything. This copy is for checking what happened, not for restoring.

    Step 2. Clean the site

    1. Scan the files and the database with a malware scanner, then check the results by hand.
    2. Restore the last clean backup from before the hack, or rebuild from clean parts: fresh WordPress files, and your theme and plugins reinstalled from their original source.
    3. Replace the .htaccess file with a clean WordPress default.
    4. Check the uploads folder and remove any code files.
    5. Check the database for scripts in posts, pages, widgets and settings, and for admin users you don’t know.
    6. Check that “WordPress Address” and “Site Address” show your own domain.

    Redirect hacks can sit unnoticed for weeks. If your backups only go back a short time, check that the backup you restore is really from before the hack.

    Step 3. Close the way in

    Find out how the attacker got in. Update or replace the plugin or theme they used, and remove plugins and themes you don’t use. If you skip this step, the redirect usually returns.

    Step 4. Change every password

    Change the passwords for every WordPress admin user, your hosting account, the database and FTP. Turn on two-factor login for WordPress and for your hosting account.

    Step 5. Scan again and test like a visitor

    Run the scan again. Then repeat the phone and private window checks from above, on several pages, over a few days.

    Step 6. Clear the warnings

    If Google flagged your site, ask for a review in Search Console under Security issues once the site is clean. If your host suspended the site, tell them what you fixed and ask them to check it again.

    How to stop it happening again

    • Keep WordPress, your theme and your plugins updated.
    • Remove plugins and themes you don’t use.
    • Use strong, unique passwords and two-factor login.
    • Keep daily backups stored away from your hosting, kept long enough that you have a clean copy to go back to.
    • Run a firewall and a daily malware scan, so a hack is found early.
    • Check your site on your phone, from Google, now and then.

    Need help removing a redirect hack?

    If you would rather not do this yourself, we can do it for you. Hacked Site Rescue starts from €149. We check your site first and confirm the price before we start. Then we restore a clean copy, close the way in, change your passwords, scan again and help you clear any Google warning.

    Get help with a hacked site

    To stop it happening again, our WordPress care plan costs €29 a month plus tax. It includes daily backups kept for 50 days, safe updates, a firewall, daily malware scans and vulnerability checks every 6 hours. If your site is hacked after 30 days on the plan, we get it back online at no extra cost.

  • Japanese keyword hack on WordPress: how to find it and remove it

    You search Google for your business and see results under your website with Japanese titles. Or you notice pages selling cheap brand bags and watches that you never made. Your home page looks normal and nothing seems wrong in the dashboard.

    This is the Japanese keyword hack. It is one of the most common hacks on small WordPress sites, and it is easy to miss because it is built to stay hidden from the owner.

    This guide explains how to check for it, why it often comes back after a quick clean, and how to remove it properly.

    What the Japanese keyword hack is

    An attacker gets into your site and creates thousands of new pages full of Japanese text. Google calls these autogenerated pages. They usually sit in folders with random names, for example yourdomain.com/ltjmnjp/341.html.

    The pages link to online shops that sell fake brand goods. The attacker wants Google to show these pages because your domain has a good history with Google. Your site does the work, and the attacker gets the clicks.

    For you, the damage is real:

    • Google shows spam under your business name.
    • Your real pages can lose rankings.
    • Google may add “This site may be hacked” to your results, or show a red warning in the browser.

    How to check if your site has it

    1. Search Google for your own site

    Type site:yourdomain.com into Google (use your own domain). This shows the pages Google has indexed for your site. Look through a few pages of results. Titles in Japanese, or pages about brands and products you don’t sell, are the clearest sign.

    2. Check Google Search Console

    If you use Search Console, check three things:

    • Security & Manual Actions > Security issues. Google lists hacked content it found, with example addresses.
    • Settings > Users and permissions. Look for owners you don’t know. Attackers often add themselves as an owner so they can submit their own sitemaps. If you got an email from Google saying a new owner was added to your site, take it seriously.
    • Indexing > Pages and Sitemaps. A sudden jump in indexed pages, or a sitemap you never added, points to this hack.

    If you have never set up Search Console, you can do it now, even on a hacked site. Our guide to the Deceptive site ahead warning explains how, step by step.

    3. Don’t trust what you see when you click

    When you click one of the spam results, you may see a “page not found” error. That does not mean the page is gone. The hack often shows Google one page and shows you another. This is called cloaking.

    To see what Google sees, paste the address into the URL Inspection tool in Search Console and run a live test. If the result shows Japanese text, the page is still there.

    Not sure if your site has been hacked at all? Our guide Is my WordPress site hacked? covers the other signs and free checks.

    Why it keeps coming back

    Many owners delete the spam pages, or install a security plugin and run one scan. A few weeks later the Japanese pages are back. This happens because the attacker leaves more than the pages:

    • A backdoor. A hidden file, often in the uploads folder or inside a plugin folder, that lets them back in.
    • Changed core files. Code added to files like index.php or wp-load.php, which builds the spam pages on the fly.
    • Rules in the .htaccess file. These send Google to the spam pages, or fake the file Google uses to confirm Search Console ownership.
    • A Search Console owner account. With it, the attacker can submit new sitemaps of spam pages.
    • The same open hole. If the outdated plugin or stolen password they used is still there, they come back the same way.

    A proper fix deals with all of these, not only the pages you can see.

    How to remove the Japanese keyword hack

    Work through these steps in order.

    Step 1. Make a copy of the site as it is now

    Before you change anything, back up the files and the database. This copy is for checking what happened, not for restoring.

    Step 2. Remove unknown owners from Search Console

    In Settings > Users and permissions, remove any owner you don’t know. Google also asks you to remove their verification token. This is usually a small HTML file in the main folder of your site (its name starts with “google”), or a rule in the .htaccess file that fakes that file. If you only remove the user and leave the token, they can verify again.

    Step 3. Clean the site

    This is the part that takes skill. A full clean looks like this:

    1. Scan the files and the database with a malware scanner, then check the results by hand.
    2. Restore the last clean backup from before the hack, or rebuild from clean parts: fresh WordPress files, and your theme and plugins reinstalled from their original source.
    3. Replace the .htaccess file with a clean WordPress default.
    4. Check the uploads folder. Only images and documents belong there, so remove any code files.
    5. Check the database for spam content, hidden links and admin users you don’t know.
    6. Remove any sitemap files you did not create.

    If your backups only go back a few weeks, check that the backup you restore is really from before the hack. This hack can sit unnoticed for months, so the latest backup may already contain it.

    Step 4. Close the way in

    Find out how the attacker got in. On small business sites it is usually a plugin or theme that was not updated, or a weak or reused password. Update or replace that plugin or theme. If you skip this step, the hack usually returns.

    Step 5. Change every password

    Change the passwords for WordPress admin users, your hosting account, the database and FTP. Turn on two-factor login for WordPress and for your hosting account.

    Step 6. Check that the spam pages are really gone

    Run the spam addresses through the URL Inspection live test again. They should now return “Not found” (a 404 or 410 error) for Google too, not only for you.

    Step 7. Tell Google

    If the Security issues report listed a problem, tick that you have fixed it and click Request Review. Explain briefly what you found and what you did. Only do this when the site is clean.

    Getting the spam pages out of Google

    The spam pages drop out of Google over time, as Google visits them again and finds they no longer exist. On a site with thousands of spam pages this can take weeks or months.

    To speed things up:

    • Submit your real sitemap again in Search Console, so Google visits your real pages.
    • Use the Removals tool in Search Console to hide the spam addresses from search results. If they all sit in one folder, you can remove the whole folder at once. This removal lasts about six months, which is usually enough for Google to drop the pages for good.
    • Don’t block the spam pages in robots.txt. If Google cannot visit them, it cannot see that they are gone.

    Your rankings for your real pages usually recover once the spam is gone, but how long that takes is up to Google.

    What about the pharma hack?

    The pharma hack works the same way, but the spam is about pills and medicines instead of brand goods. The attacker adds pages or hidden links that only Google sees. You find it the same way (site: search, Search Console, URL Inspection) and remove it with the same steps.

    How to stop it happening again

    Most small business sites are hacked through an outdated plugin or theme, or a weak password. To lower the risk:

    • Update WordPress, your theme and your plugins regularly.
    • Remove plugins and themes you don’t use.
    • Use strong, unique passwords and two-factor login.
    • Keep daily backups stored away from your hosting, kept long enough that you have a clean copy to go back to.
    • Run a firewall and a daily malware scan, so a hack is found early, before Google finds it.
    • Check Search Console now and then, and act on any email about a new owner.

    Need help removing the Japanese keyword hack?

    If you would rather not do this yourself, we can do it for you. Hacked Site Rescue starts from €149. We check your site first and confirm the price before we start. Then we restore a clean copy, close the way in, change your passwords, scan again and help you clear the spam from Google.

    Get help with a hacked site

    To stop it happening again, our WordPress care plan costs €29 a month plus tax. It includes daily backups kept for 50 days, safe updates, a firewall, daily malware scans and vulnerability checks every 6 hours. If your site is hacked after 30 days on the plan, we get it back online at no extra cost.

  • Deceptive site ahead on your WordPress site: what it means and how to remove it

    You open your own website and Chrome shows a red screen: “Deceptive site ahead”. Or it says “The site ahead contains malware”. Your customers see the same screen, and they leave.

    This warning comes from Google Safe Browsing. Chrome, Firefox and Safari all use it, and Google Search can show “This site may be hacked” under your listing too. In most cases it means Google found harmful content on your site. On a small business WordPress site, that almost always means the site has been hacked.

    The good news is that the warning can be removed. Google takes it off once the problem is fixed and checked. This guide explains how, in order.

    What the different warnings mean

    Google uses a few different messages. They point to different problems.

    • Deceptive site ahead. Google found pages that try to trick visitors, for example a fake bank or fake login page, or a page that asks for card details. Hackers often hide these pages deep inside a hacked site, where the owner never looks.
    • The site ahead contains malware. Google found code that tries to install harmful software on visitors’ devices, or sends them to a site that does.
    • This site may be hacked. This shows in Google search results, under your site’s name. Google thinks someone added pages or links to your site without your permission, often spam pages in another language.

    All three mean the same first step: find out exactly what Google found.

    Step 1. Check what Google found

    Use Google Search Console

    Search Console is a free Google tool for site owners. If you already use it, log in and open Security & Manual Actions > Security issues. Google lists the problem it found and some example addresses on your site.

    Never used Search Console? You can still set it up now

    The red warning does not stop you. It is only shown to people who visit your site in a browser. It does not block Google’s own checks, your domain settings or your hosting account, so you can add your site to Search Console today, even while the warning is showing.

    The simplest way is through your domain, because it does not touch the website at all:

    1. Go to Google Search Console and sign in with a Google account.
    2. Choose Domain, type your domain (for example yourbusiness.com) and click Continue.
    3. Google gives you a short line of text (a TXT record). Copy it.
    4. Log in to the company where you bought your domain (for example GoDaddy, Namecheap, IONOS or Cloudflare). Open the DNS settings for your domain and add a new TXT record with that text.
    5. Go back to Search Console and click Verify. This often works in a few minutes, but it can take longer.

    If the DNS settings are confusing, Google also offers other ways to verify, for example uploading a small file to your site through your hosting account’s File Manager.

    Once your site is verified, the Security issues report shows what Google has found on it now, so you don’t lose anything by setting it up late. You also need Search Console later to ask Google to remove the warning.

    If you would rather not do this part yourself, ask your web designer or your host, or ask us when you get in touch.

    Check the Safe Browsing status page

    Open the Google Safe Browsing site status page and type your website address. It tells you if Google currently thinks your site is unsafe.

    Write down the example addresses

    Copy the addresses Google lists. They show where the harmful content is. Often it is a folder or a page you have never seen, for example a fake login page inside your uploads folder.

    Step 2. Don’t delete the site or start over in a panic

    Many owners delete files they don’t recognise, or reinstall WordPress over the top of the hacked site. This often makes it worse. The hacker’s files stay behind, and you lose the evidence of how they got in.

    Before you change anything, make a full copy of the site as it is now: files and database. If you use a backup plugin or your host offers backups, use that. This copy is only for checking, not for restoring.

    Step 3. Find and remove the harmful content

    This is the part that takes skill. Hackers rarely leave one file. They usually leave:

    • the fake pages or harmful code Google found,
    • a hidden way back in (a backdoor), often in the uploads folder, a plugin folder or the database,
    • sometimes a new admin user.

    If you only delete the pages Google found, the hacker uses the backdoor and puts them back. Then Google flags the site again.

    Hidden spam pages are a common cause. The Japanese keyword hack is one of the most frequent on small sites.

    A proper repair looks like this:

    1. Scan the files and the database with a malware scanner, then check the results by hand.
    2. Find how the attacker got in. It is usually an outdated plugin or theme, or a stolen password.
    3. Restore the last clean backup, or rebuild from clean parts: fresh WordPress, theme and plugins reinstalled from their original source.
    4. Check the uploads folder. Only images and documents belong there, so remove any code files.
    5. Check the database for hidden links, scripts and admin users you don’t know.
    6. Update or replace the plugin or theme the attacker used.
    7. Change every password: WordPress, hosting, database and FTP.
    8. Scan again to confirm the site is clean.

    If you have a backup from before the hack, restoring it is often the fastest clean start. You still need steps 6 and 7, or the same hole stays open.

    Not sure if your site is hacked at all? Our guide Is my WordPress site hacked? lists the signs and the free checks you can run.

    Step 4. Ask Google to review your site

    Only do this when the site is clean. In Search Console, open Security issues, tick that you have fixed the issues and click Request Review. Explain in a few lines what you found and what you did, for example: “Removed fake login pages from the uploads folder, restored a clean backup, updated the plugin that was used to get in, changed all passwords.”

    Google says reviews can take several days or weeks. You get an email when the review is done. If the site is clean, the warning is removed.

    Don’t ask for a review before the site is clean. Google says that a request sent before the problem is fixed can slow down the next review, and a site can be marked as a repeat offender.

    What if your site was not hacked?

    It happens, but it is less common than owners hope. Google can flag a site because:

    • it loads a script, ad or widget from another site that has been hacked,
    • it links to or sends visitors to a site Google has flagged,
    • a page on it looks like a login page for another company.

    The Security issues report still shows what Google found. Remove or replace the part that causes it, then request a review the same way.

    How long until visitors stop seeing the warning?

    Once Google approves the review, the warning stops showing in browsers. This can take a little longer to reach everyone, because browsers update their list of unsafe sites on their own schedule.

    While you wait, you can tell regular customers by email or social media that the site is being fixed and is safe again once the warning is gone.

    How to stop it happening again

    Most small business sites get hacked through a plugin or theme that was not updated, or through a weak or reused password. To lower the risk:

    • Update WordPress, your theme and your plugins regularly.
    • Remove plugins and themes you don’t use.
    • Use strong, unique passwords and turn on two-factor login.
    • Keep daily backups stored away from your hosting, so you have a clean copy to go back to.
    • Run a firewall and a malware scan so an attack is found early, before Google finds it.

    Need help with a Deceptive site ahead warning?

    If you would rather not do this yourself, we can do it for you. Hacked Site Rescue starts from €149. We check your site first and confirm the price before we start. Then we restore a clean copy, close the way in, change your passwords, scan again and help you ask Google to remove the warning.

    Get help with a hacked site

    To stop it happening again, our WordPress care plan costs €29 a month plus tax. It includes daily backups, safe updates, a firewall, daily malware scans and vulnerability checks every 6 hours. If your site is hacked after 30 days on the plan, we get it back online at no extra cost.

  • Is my WordPress site hacked? 7 warning signs and what to do next

    When your website acts strangely, you may wonder whether someone hacked it. Most hacks on small business sites don’t put a message on your home page. Hackers build them to hide, so you keep seeing a normal site while visitors or Google see something else.

    This guide lists the 7 signs to look for, the free checks you can run in about 15 minutes, and what to do first if you find a problem.

    7 signs hackers may have breached your WordPress site.

    1. Google shows a warning

    Google may display ‘This site may be hacked’ under your site in Google’s search results. Or Chrome shows a red screen with “Deceptive site ahead” or “The site ahead contains malware” when someone opens your site. Google only shows these warnings after it has found harmful content on your site, so take them seriously.

    If you see the red “Deceptive site ahead” screen, read what it means and how to remove it.

    2. Visitors are sent to other websites

    For example, customers tell you your site opened a gambling site, a fake shop or a page selling pills. However, these redirects often occur only on phones or for visitors arriving from Google or only on the first visit. That is why you may not see it when you type your address on your own computer while logged in.

    A common case looks like this: the owner opens the site on their laptop and everything looks fine. The dashboard looks normal too. But a customer who taps the site in Google on their phone lands on a gambling page.

    3. Strange pages show up in Google

    Search Google for “site:yourdomain.com” (with your own domain). If you see pages you never made, for example pages in Japanese or pages selling cheap branded goods, someone has added them to your site. People often call this the Japanese keyword hack.

    Our guide explains how to find and remove the Japanese keyword hack.

    4. There are admin users you don’t know

    In your WordPress dashboard, go to Users and click Administrator. Attackers often add a hidden admin user so they can get back in later. If you see a name you didn’t create, treat it as a hack.

    5. Your host sends a malware notice or suspends the site

    Hosts scan the sites on their servers. If yours finds harmful files, it may email you, block part of the site or suspend it.

    6. Your security plugin keeps finding infected files

    If you delete the files and the same warning comes back a few days later, the way in is still open.

    7. Things change that you didn’t change

    • You see plugins you didn’t install, or posts you didn’t write.
    • Your password no longer works.
    • Emails from your domain bounce or land in spam.
    • The site has suddenly become very slow.

    These can have other causes too, so check them together with the signs above.

    Locked out of WordPress admin: is it a hack?

    Not always. If you can’t log in to WordPress admin, the cause is often a forgotten password, a security plugin that blocks you after too many attempts, or a broken plugin.

    Click Lost your password? on the login page first. If the reset email doesn’t arrive or WordPress says no account, someone may have changed your account. That is a sign of a hack. Your host can check the list of users in the database for you.

    Free checks you can run in 15 minutes

    1. Search Google for “site:yourdomain.com“. Look through the results for pages you don’t recognize.
    2. Open your site on your phone using mobile data, not Wi-Fi. Search for your business on Google and click your own result, the way a customer would.
    3. Run a free scan with Sucuri SiteCheck. It checks your WordPress site for malware and checks whether it is on a blocklist. It can only see what is visible from outside, so a clean result does not prove the site is clean.
    4. Check Google Search Console if you have it set up. Go to Security & Manual Actions, then Security issues.
    5. Check your users. In the dashboard, go to Users and look at every administrator.
    6. Check your plugins. Look for plugins you don’t recognize and for updates that have been waiting a long time.

    How do small business sites get hacked?

    Nobody chose your site by hand. Automated programs scan millions of sites every day looking for known security holes. The most common ways in are:

    • An outdated plugin or theme. In 2025, 91% of the 11,334 new WordPress security holes found were in plugins (Patchstack).
    • A weak or stolen password, often one used on other websites too.
    • An old admin account that a past web designer or staff member still has.
    • Upload of some files that are already infected (pdf , images doc, etc).

    I think my site is hacked. What do I do first?

    1. Don’t delete files or reinstall WordPress yet. It can remove the clues needed to find how the attacker got in, and the hack often comes back.
    2. Write down when you first noticed it and what you saw. Take screenshots. The date helps choose a backup from before the hack.
    3. Secure your email account first. Change the password of the email address your WordPress and hosting accounts use, and turn on two-step login. Do it from a computer or phone you trust. Anyone who can read that inbox can reset your other passwords.
    4. Find out what backups you have. Check with your host and in any backup plugin you use. Don’t restore yet: a backup from after the hack started brings the problem back. If you sell online, a restore also removes every order placed after the backup date, so note those orders before anything is restored.
    5. Reply to your host if they sent a notice, so they know you are dealing with it.
    6. Get help from someone who knows WordPress. Restoring a backup without closing the way in usually means the site gets hacked again through the same vulnerability.

    Need help with a hacked site?

    Our Hacked WordPress Site Repair starts from €149 plus tax. We check your site first and confirm the price before any work starts. Then we find how they got in, restore a clean copy, close the way in, change your passwords and scan again. If Google shows a warning, we help you get it removed.

    If you already have a subscription plan with us, we start work as soon as we see it, usually within a few hours. At the latest, we’re on it by the next working day.

    Get help with a hacked site

    Not sure if your site is hacked? Ask for a free website check. We look at your site from the outside for malware, blocklists, out-of-date software and email settings, and send you a short report.

    How to stop it happening again

    The WP Paladin Care plan is €29 a month plus tax. We keep a daily backup of your site, run your updates safely, protect it with a firewall, scan it for malware every day and check your plugins for security holes every 6 hours. If your site is hacked after 30 days on the plan, we restore it from a clean backup at no extra cost.

    See what’s included in the plan

    Want to check your own site first? Download our free 10-minute WordPress safety checklist.