Website security the way Google sees it
Google doesn’t just rank websites; it also protects people from dangerous ones. If it decides your site has been hacked or is harmful, it can show a warning in search results, or a full red warning page in Chrome before anyone reaches you. For a small business, that’s an immediate loss of trust and traffic. Here’s how Google thinks about website security, based on its own guidance for site owners.
What Google looks for
Google’s Security Issues report in Search Console groups problems into four kinds:
- Hacked content: pages, links or code added to your site without permission, often spam pages or hidden links injected through an outdated plugin.
- Malware and unwanted software: code that tries to harm visitors’ devices or install things they didn’t ask for.
- Social engineering: deceptive pages that trick people into handing over information or downloading something, such as a fake login page planted on your site.
- Download and billing issues: harmful or unusual downloads, and unclear mobile billing.
Google’s guidance also covers user-generated spam: spammers using open comment forms, forums or sign-up pages to post links on your site.
Prevention, in plain language
- Update everything: your platform, themes, plugins and server software. Most hacks use known, already-fixed weaknesses. If you’re on WordPress, see the tune-up checklist.
- Lock down logins: unique passwords, two-step sign-in, and no old admin accounts.
- Tame forms and comments: turn off comments you don’t need, moderate the rest, and use spam protection on forms. Mark user-submitted links as such (with
rel="ugc"ornofollow). - Be careful what you embed: third-party scripts and widgets run on your pages. Fewer is safer.
- Watch for redirects: make sure your site can’t be used to bounce visitors elsewhere. See open redirects.
- Keep backups you can restore from a known-clean point: backups that actually work.
- Simplify: a static site with no database or admin login has very little to attack. See how this website was built.
How you’ll find out
The Security Issues report shows a green check when all is well, or a list of issues with sample affected pages. Make sure Search Console’s emails go to an inbox someone reads. You can also check any site’s status with Google’s Safe Browsing site status tool (search “Google Transparency Report Safe Browsing”).
If Google flags your site
- Don’t browse the infected pages normally. Use Search Console’s URL Inspection tool to see what Google sees.
- Follow the first-hour steps: what to do in the first hour if your website is hacked.
- Fix the whole site, not just the sample pages. Google’s list may be incomplete. Find how they got in, close it, and change every password.
- Test your fixes.
- Request a review in the Security Issues report, describing the problem, what you did and the result.
- Wait. Reviews generally take a few days to a few weeks. Don’t resubmit while one is pending.
Getting it right the first time matters. Under Google’s Safe Browsing repeat offender policy, a site that keeps switching between clean and harmful can be blocked from requesting reviews for 30 days.
Hardening your site, monitoring for problems and helping when something goes wrong is part of Protect.