sodcalculator

10 Tech How-To

Chrome Malware Warning: A Guide for Visitors & Site Owners

Guide 10-43083 · Updated · Step by step

This guide explains what a Chrome malware warning means, why it appears, and exactly what to do whether you’re a visitor who encountered the warning or the site owner trying to resolve it. You’ll learn how to stay safe, how to get your site reviewed, and how to prevent future warnings.

What You’ll Need

  • For visitors: A computer or phone with Chrome installed (the steps work on Windows, Mac, Android, and iOS).
  • For site owners: Access to your website’s hosting control panel or file manager, and the ability to edit files (via FTP or a file manager in your hosting dashboard).
  • For site owners: A Google Search Console account (free) to submit a review request.
  • For site owners: Basic knowledge of HTML and file permissions (chmod) is helpful but not required.

Step-by-Step

If You Are a Visitor Seeing the Warning

  1. Do not click through. When you see the red “Deceptive site ahead” or “Site contains malware” warning, stop. Do not enter any passwords, credit card numbers, or personal information on that page.
  2. Close the tab. Use the X on the tab or press Ctrl+W (Windows) / Cmd+W (Mac) to close it. If the warning page won’t close, force-quit Chrome (Task Manager on Windows, Force Quit on Mac, or swipe away on mobile).
  3. Check your own device. Run a malware scan on your computer or phone. The warning may be a sign that your device is infected and is redirecting you to malicious sites. Use a reputable antivirus or anti-malware tool.
  4. Clear your browsing data. Go to Chrome settings > Privacy and security > Clear browsing data. Select “All time” and clear cached images and files, cookies, and site data. This removes any malicious redirect scripts that may have been stored.
  5. Try the site from a different device or network. If the warning only appears on your device or network, it’s likely a local issue. Try a different phone or a different Wi-Fi network to confirm.
  6. If you need to access the site urgently, use a search engine cache. Search for the site on Google and click the small arrow next to the URL, then select “Cached.” This shows a snapshot of the page without loading the actual site.
  7. Report the warning if you believe it’s a false positive. If the site is one you trust and you believe the warning is incorrect, you can report it to Google via the Safe Browsing page (see Troubleshooting).

If You Are the Site Owner

  1. Confirm the warning. Open your site in Chrome and look for the warning. Also check Google’s Safe Browsing status by visiting https://transparencyreport.google.com/safe-browsing/search and entering your URL. This tells you if Google has flagged your site and why.
  2. Identify the malware or issue. The most common causes are: injected malicious code (often in PHP files or JavaScript), a hacked plugin or theme, or a redirect script that sends visitors to phishing pages. Review your site’s files for anything unusual, especially recently modified files.
  3. Scan your site. Use a security scanner like Sucuri SiteCheck (free) or a similar tool to detect malware. These tools will often tell you exactly which files are infected.
  4. Remove the malicious code. If you find infected files, either restore them from a clean backup (if you have one) or manually remove the malicious code. If you’re not sure, contact your hosting provider—many offer malware removal services.
  5. Change all passwords. Change your hosting account password, FTP password, database passwords, and any CMS (WordPress, Joomla, etc.) admin passwords. Use strong, unique passwords.
  6. Update everything. Update your CMS, all plugins, themes, and any other software to the latest versions. Outdated software is a common entry point for malware.
  7. Check for hidden redirects. Look in your .htaccess file (on Apache servers) for any suspicious redirect rules. Also check your site’s HTML for hidden iframes or JavaScript that you didn’t add.
  8. Verify your site is clean. After removing malware, re-scan your site with the security tool to confirm it’s clean. Also check the Safe Browsing transparency report again—it may take a few hours to update.
  9. Request a review from Google. Go to Google Search Console, add your site if you haven’t already, and verify ownership. Then go to the “Security Issues” section, review the issues, and click “Request Review.”
  10. Wait for Google’s response. Google typically reviews within a few days to a week. You’ll be notified via Search Console when the review is complete. If approved, the warning will be removed.

Common Mistakes

  • Ignoring the warning as a visitor. Clicking through can lead to data theft or further malware infection. Always take the warning seriously.
  • As a site owner, assuming the warning is a false positive without checking. While false positives do happen, it’s more likely your site is actually compromised. Always scan and investigate.
  • Only removing malware but not fixing the vulnerability. If you don’t update software or change passwords, the malware will likely return.
  • Requesting a review before your site is actually clean. Google will reject the review and you’ll have to wait longer. Make sure your site is completely clean before submitting.
  • Not backing up your site before making changes. Always have a recent backup so you can restore if something goes wrong.

Tips

  • For visitors: Use a password manager—it will not autofill on a known malicious site, giving you an extra layer of protection.
  • For site owners: Enable two-factor authentication (2FA) on your hosting and CMS accounts to prevent unauthorized access.
  • For site owners: Regularly update your CMS, plugins, and themes. Set up automatic updates where possible.
  • For site owners: Use a security plugin or service that monitors your site for changes and malware.
  • For site owners: Keep a clean, offline backup of your site (not just on the same server) so you can restore quickly.
  • For both: Use HTTPS (SSL) on your site. While it doesn’t prevent malware, it builds trust and can reduce the chance of certain attacks.

Troubleshooting

  • The warning persists after you’ve cleaned your site. This can happen if Google’s cache hasn’t updated yet. Wait a few days, and re-submit the review if needed. Also, check if there are other issues like phishing or unwanted software flags.
  • You can’t find any malware. Use a more thorough scanner like a server-side scan from your hosting provider. Sometimes malware is hidden in database entries or in files you don’t normally check (like .ico or .png files with appended code).
  • Your hosting provider disabled your site. This is common. Contact them to ask for details on why they disabled it and what you need to do to get it re-enabled. They may require proof that you’ve cleaned the site.
  • Google’s review is rejected. Read the rejection reason carefully. It will usually tell you what issues remain. Fix those and re-submit.
  • The warning appears only on certain pages. This often means only those pages are infected. Focus your scanning there, but also check the whole site for similar patterns.
  • You see the warning but your site is actually clean (false positive). This can happen if your site was previously infected and Google hasn’t re-crawled it yet. Submit a review and wait. If it’s truly a false positive, Google will clear it.

Frequently Asked Questions

What does the Chrome malware warning actually say?

It typically says “Deceptive site ahead” or “The site ahead contains harmful programs.” It appears as a full-page red or yellow warning, and you have to click a link to proceed (which we recommend against).

Can I get a virus just by visiting a site with the warning?

Often, just visiting the page is enough to trigger a download or redirect. That’s why the warning appears. However, modern browsers have sandboxing, so the risk is lower but still present. Don’t interact with the page.

How long does it take for Google to remove the warning after I request a review?

It usually takes a few days to a week. Google will email you when the review is complete. If it takes longer than two weeks, you can re-submit the request.

Will the warning affect my search ranking?

Yes, temporarily. Google may show the warning in search results, which can deter users. Once the warning is removed, your ranking should recover, but it may take time.

What if I’m a visitor and I already entered my password on a flagged site?

Immediately change that password on any site where you used the same password. Also, run a malware scan on your device. If you entered financial information, contact your bank or credit card company.

Can I remove the warning myself without contacting Google?

No. Only Google can remove the warning. You must clean your site and submit a review request through Google Search Console.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →