Guide · Security

Website hacked or flagged as 'Dangerous' or 'Deceptive' by Google? A step-by-step recovery guide for schools, NGOs, clinics and small businesses

By The PageKo team · Published · 12 min read

The short answer

If your website is hacked or Google shows a 'Dangerous', 'Deceptive site ahead' or 'This site may be hacked' warning, first contain it: tell your host or developer, preserve logs, take the site offline if it is serving malware or a fake login page, and change every password (website, hosting, FTP, database, registrar and email) from a clean device with two-step verification. Then open the Security issues report in Google Search Console, which lists the problems, the first detected date and sample URLs; Google says to rely on it rather than on whether you personally see a warning. Inspect pages with URL Inspection or a command-line tool rather than your normal browser. Find and fix how the attacker got in, restore from a clean backup or clean every affected file, and fix the issue on every page, because partial fixes don't earn a partial return. Then request a review once, explaining the issue, the fix and the result; reviews take days to weeks, and repeat offenders can't request another review for 30 days. Check whether you must report the incident to CERT-In within 6 hours.

It usually starts with a phone call. A parent says the school website opened a gambling page. A patient says Chrome showed a red screen saying "Dangerous site". A donor forwards a Google result for your NGO with "This site may be hacked" under it, or with spam text in Japanese where your description should be. By then, the problem has often been there for days or weeks.

This guide is a calm, step-by-step plan for what to do when a small organisation's website has been hacked, or flagged by Google as dangerous or deceptive. It covers what each warning means, how to confirm the problem without making it worse, how to clean up, how to ask Google for a review, whether you need to report the incident, and how to stop it happening again. It is based on Google Search Central and Search Console documentation, web.dev's hacked-site guidance and CERT-In's directions, linked in the sources.

What the warnings mean

Google checks sites for security problems through Safe Browsing, which powers the warnings in Chrome and other browsers, and through Search. Pages with a security issue can appear with a warning label in search results, or with a full-page warning in the browser when someone tries to open them. The main types:

What people seeWhat it usually means
"This site may be hacked" under your search resultGoogle found content placed on your site without permission, such as spam pages or links.
A red "Dangerous site" or similar warning in ChromeGoogle believes the site hosts or distributes malware or harmful downloads.
"Deceptive site ahead"Social engineering: content that tricks visitors into revealing information, such as a fake login or payment page, or downloading something. Often added by a hacker, sometimes through an ad or embedded third-party content.
Spam titles or descriptions in your search results (pharmacy, gambling, foreign-language text)Hacked content, often hidden from you by showing different content to Google than to visitors (cloaking).
Visitors from Google are sent to another site, but you can't reproduce itA conditional redirect, which only fires for some visitors, devices or referrers.

One case is easy to miss. Google says that if you run a charity site and use a third-party platform to collect donations, the donation site must clearly identify itself as acting on behalf of the charity, or it could be considered social engineering. If your donation or fee payment page lives on another service, make sure the relationship is clearly stated on both sides.

The first hour: contain it

  1. Don't panic, and don't delete everything. You will need the evidence to find out how it happened, and your host may need it too.
  2. Tell your hosting provider or web developer. Ask them to confirm the problem, preserve logs and, if the site is serving malware or a phishing page, put it into maintenance mode or take it offline temporarily.
  3. Change passwords from a clean device: website admin accounts, hosting control panel, FTP or SFTP, database, domain registrar and the email accounts linked to them. Turn on two-step verification wherever it is offered.
  4. Check for new admin users in your website software and remove any you don't recognise.
  5. Tell your team what to say if parents, patients or donors ask: the site has a technical problem, it is being fixed, and they should not enter personal or payment details on it until you confirm it is safe.

If you can't log in at all, the domain points somewhere you don't recognise, or your registrar account has changed, the problem may be the domain rather than the site. Contact your registrar first. Our guide to protecting your domain from expiry and takeover explains how.

Confirm what is wrong, safely

Use Search Console as the source of truth

If your site is verified in Google Search Console, open the Security issues report. It lists the issues Google found, the date each was first detected, a short description and a sample of affected URLs. Google says the sample is not necessarily complete, and that you should rely on this report, rather than on whether you personally see a warning, because Safe Browsing shows warnings based on the browsing context. If your site isn't verified yet, verify it now; our Search Console setup guide walks through it. Anyone can also check a site's current status on Google's Safe Browsing site status page.

Don't open infected pages in your normal browser

Google's guidance is to avoid viewing infected pages directly in a browser, because malware can exploit browser vulnerabilities, and hackers often hide content from site owners. Safer ways to look:

Common things a hacker changes

Clean up properly

Google is clear that fixing a malware or code injection problem requires the ability to read code and possibly server configuration. If that isn't you, this is the moment to bring in your developer, your host or a security professional. Either way, the steps are the same.

  1. Find how they got in. Common causes are outdated website software, plugins or themes, weak or reused passwords, an old unused plugin, a shared login, insecure file permissions or a compromised third-party script. If you don't fix the cause, the site will be hacked again.
  2. Restore from a clean backup if you have one, made before the compromise, then update all software before putting it back online. If you don't know when the hack started, check the "first detected" date in Search Console and your server logs.
  3. If there is no clean backup, remove the hacked files, pages and code by hand, reinstall the website software and plugins from official sources, and compare everything else against a known-good copy.
  4. Fix it everywhere. Google says fixing the issue on just some pages will not earn a partial return to search results, and if the report lists several issues, you must fix all of them.
  5. Remove unknown users, scheduled tasks and API keys, and rotate every password and key again once the site is clean.
  6. Remove spam pages properly. Hacked pages you delete should return a 404 or 410 status. Search Console's removals tool can temporarily hide a URL from results while Google recrawls.
  7. Test. Re-run URL Inspection on the sample URLs, check the site: search again, and ask your host to scan the server.

If your site runs on WordPress, WordPress.org's own "My site was hacked" FAQ is a good companion to this list.

Ask Google for a review

When everything listed in the Security issues report is fixed on all pages, select Request review in the report. Google says a good request does three things: explains the exact issue, describes the steps you took to fix it, and documents the outcome. Write it in plain language, for example:

Our site was compromised through an outdated plugin, which was used to add spam pages under /wp-content/uploads/ and a redirect in .htaccess. We restored the site from a backup taken before the first detected date, updated the CMS and all plugins, removed the unused plugin, deleted the injected pages (they now return 404), reset all admin, hosting and FTP passwords, enabled two-step verification and removed two unknown admin accounts. URL Inspection shows the sample URLs are clean.

Reviews for security issues can take from a few days to a few weeks. You get an email when your request is received and when it is complete. Don't resubmit while a request is pending. Submitting before the problem is really fixed can slow the next review, and Google's Safe Browsing repeat offender policy says sites that repeatedly switch between compliant and non-compliant within a short window are classified as repeat offenders and can't request another review for 30 days.

If you are confident your site was flagged in error, Google provides a Safe Browsing error report form. Use it only after checking carefully; most flags are real, even when the hacked content is hidden from you.

Do you need to report the incident?

Possibly. CERT-In's directions of 28 April 2022 require service providers, intermediaries, data centres, body corporate and government organisations to report certain cyber security incidents to CERT-In within 6 hours of noticing them. The listed types include website defacement or intrusion into a website with unauthorised changes such as inserting malicious code or links to external websites, malicious code attacks, phishing, data breaches and data leaks. Reports can be sent to incident@cert-in.org.in, and CERT-In publishes the formats on its website. CERT-In's FAQ explains "body corporate" using section 43A of the IT Act: any company, including a firm, sole proprietorship or other association of individuals engaged in commercial or professional activities. Clinics and companies, including Section 8 companies, are likely to be in scope; for a trust, society or school, check with your adviser.

If personal data such as enquiry forms, donor details or patient requests may have been exposed, there may be other duties too. Under India's Digital Personal Data Protection Rules, breach notification to the Data Protection Board and to affected people is part of the duties that start on 13 May 2027, as explained in our DPDP Act website checklist. Even before then, telling affected people promptly and honestly is the right thing to do.

If your site was used to host a phishing page imitating a bank or government service, also tell that organisation so they can warn their users.

After you're back: rebuild trust

How to stop it happening again

Our website security and backups guide has a one-page prevention checklist, and the maintenance checklist covers what should be done monthly.

Recovery checklist

How PageKo fits in

PageKo is a managed website platform, so server updates, automatic HTTPS certificates, backups, and uptime and SSL monitoring every 10 minutes are part of the service rather than jobs left to you. We keep sites simple, with no plugin stack to patch, and the client dashboard shows your site's status. If your current site has been hacked more than once, moving to a simpler, managed site is often cheaper than repeated clean-ups; our guide to moving a website off Wix or WordPress explains how to switch without losing your search rankings.

PageKo builds, hosts and maintains your full website free for 3 months from launch, with no card needed and no automatic charge. You can use a domain you own or a free name.pageko.com subdomain, and trial sites carry a small linked footer credit to PageKo.com. After the trial, paid plans start at ₹999 a month plus applicable taxes, and we talk before anything changes. See pricing and trial terms.

The PageKo team

Frequently asked questions

Why does Chrome say 'Deceptive site ahead' for my website?

Google's Safe Browsing has found social engineering content: pages that trick visitors into revealing information, such as a fake login or payment page, or into downloading software. It is often added by a hacker or comes through an ad or embedded content. Check the Security issues report in Search Console for sample URLs.

How long does it take Google to remove a hacked or malware warning?

After you fix every issue and request a review in the Search Console Security issues report, Google says a security review can take from a few days to a few weeks. You get emails when the request is received and when it is complete. Don't resubmit while a request is pending.

I can't see the hacked content. Is Google wrong?

Probably not. Hackers often use cloaking, showing spam to Google but not to visitors, or redirects that only fire for visitors arriving from search. Google says to rely on the Security issues report, and to check pages with URL Inspection, a site: search, or a command-line request with a Google referrer.

Do I have to report a hacked website to CERT-In?

CERT-In's directions of 28 April 2022 require service providers, intermediaries, data centres, body corporate and government organisations to report listed incidents, including website intrusion with malicious code or links, within 6 hours. Body corporate covers companies, firms, sole proprietorships and associations in commercial or professional activity. Check with your adviser if you are a trust or society.

What is Google's Safe Browsing repeat offender policy?

Sites that repeatedly switch between compliant and non-compliant behaviour within a short window are classified as repeat offenders. The owner is notified by email and can't request another review through Search Console for 30 days. That is why you should fix the root cause before requesting a review.

Should I just delete the website and start again?

Not before preserving evidence and finding the cause, or the new site may be hacked the same way. If the old site has been compromised repeatedly, moving to a simpler, managed site is often sensible, but keep the same URLs or set up redirects so you don't lose search rankings.

Sources

More guides

See your new website before you pay anything.

Send us your current site, or just your organisation's name. We'll come back with a working preview, free and with no obligation.