🚨
Security

Google says your site is dangerous: cleanup and review request

01.12.2026
← All articles

Few moments are worse for a site owner than a customer calling to say the browser shows a red "Dangerous site" screen when they try to visit. That warning comes from Google Safe Browsing, which is used not only by Chrome but also by Firefox, Safari and other browsers. Most visitors leave immediately, and search results may show a warning next to your site as well. The good news is that it can be fixed: you clean the site and ask Google to review it again.

Why Google flags a site as dangerous

Safe Browsing continuously scans the web for pages that can harm users. The most common cause is a compromise: an attacker gets in through an outdated plugin or a weak password and injects malicious JavaScript, a hidden redirect or a phishing page. Owners often notice nothing, because the malicious code is shown only to mobile visitors or to people arriving from search. Less often the problem is an external script, an ad block or a downloadable file rather than the site itself.

Google uses several warning types. "Deceptive site" appears for phishing or fake login pages, "This site may harm your computer" or malware warnings cover injected code and redirects, and "unwanted software" warnings apply to pages pushing suspicious downloads. Knowing which one you got tells you where to look.

Diagnosing with Search Console

Add your site to Google Search Console and verify ownership. A DNS TXT record is the simplest method, and in the sayt.uz cabinet you can add it in the domain's DNS section in a few minutes. Then open the Security issues report, which lists the problem type and usually some sample infected URLs. The list may be incomplete, but it shows where to start. The URL Inspection tool shows how Google sees a page, which helps when malware is served only to Googlebot.

Example: a dental clinic in Tashkent

Imagine a Tashkent dental clinic running a WordPress site at misol.uz. Patients report a red screen when they open the link from Instagram. Search Console reports malware, and the services page is among the samples. Investigation shows that a slider plugin not updated for two years let attackers add code that redirected mobile visitors to a shady site.

Finding the malicious code

First take a full backup, even of the infected site, so you can roll back and analyse the attack later. Then search via SSH or the hosting panel terminal, starting with recently modified PHP files and typical obfuscation functions:

# PHP files modified in the last 7 days
find ~/www/misol.uz -name "*.php" -mtime -7 -type f

# Functions commonly used to hide code
grep -rlE "eval\(base64_decode|gzinflate\(|str_rot13\(" --include="*.php" ~/www/misol.uz

# There should be no PHP in uploads
find ~/www/misol.uz/wp-content/uploads -name "*.php"

# With WP-CLI
wp core verify-checksums
wp plugin verify-checksums --all
wp user list --role=administrator

Not every match is malicious, since some legitimate plugins use base64, so read each file before deleting it. Watch for unknown administrator accounts, which attackers often create, and check the database for injected <script> tags in posts or options.

Cleaning up and preventing reinfection

  1. Update WordPress core, the theme and all plugins; delete unused ones entirely.
  2. Change passwords for all admins, the hosting panel, FTP/SSH and the database.
  3. Regenerate the salts in wp-config.php to end all active sessions.
  4. Remove unknown admin accounts and enable two-factor authentication.
  5. Review .htaccess files for foreign redirect rules.

Restoring a clean pre-hack backup is often the most reliable route, but the vulnerable plugin must still be updated or the site will be hacked again. Afterwards, test from a phone and via a search result link, because malicious redirects often trigger only under certain conditions.

Requesting a review

When you are confident the site is clean, mark the issues as fixed in the Security issues report and request a review. Briefly explain what you found and how you fixed it. Google replies through Search Console messages; timing depends on the issue type and is usually no more than a few days. If the request is rejected, find the remaining code before resubmitting, as repeated rejections can lengthen the wait.

Staying protected

Most sites are hacked through simple neglect: outdated plugins, reused passwords and untested backups. Regular updates, strong passwords and off-server backups prevent most incidents. Turn on Search Console email alerts so you hear about problems before your customers do.

Related articles

📊 Analysing Access Logs: Finding and Blocking Suspicious IPs 🤖 Prompt injection attacks on AI chatbots: how they work and how to defend 📧 Email spoofing: someone is sending mail in your name, what to do 🔐 Security when granting permissions to AI agents
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓