Skip to main content

Web Development

Website Redirecting to Spam? What Small Business Owners Should Do (2026)

Website redirecting to spam? Why hacked redirects often hide from the owner, how to confirm the hack in Google Search Console, a step-by-step cleanup, how to get the "This site may be hacked" warning removed and how to stop it happening again.

By ITSolutionNYC TeamPackages from $199

Quick Answer: Why Is My Website Redirecting to Spam?

If your website is redirecting to spam, it has almost certainly been hacked. Google's spam policies describe exactly this: attackers inject code that sends some visitors to harmful or spammy pages, often only when they arrive from Google Search or on a particular device, so the owner may never see it. The fix is to confirm the hack, clean every infected file and database entry, close the hole the attacker used, change every password, and then ask Google for a review in the Search Console Security Issues report.

Last updated: December 2026. Written for U.S. small-business owners whose website sends visitors to gambling, pharmacy, adult or "you won a prize" pages, or whose Google listing now shows a hacked-site warning. Every policy and price below was checked on the linked source on December 2, 2026. ITSolutionNYC is based in Louisville, KY and works with clients remotely.

Key Takeaways

  • Google lists hacked content and sneaky redirects as spam; a hacked redirect can depend on the referrer, the browser or the device, according to Google Search Central.
  • Google shows "This site may be hacked" in search results when it believes pages were changed or spam pages were added, and the label stays until the owner fixes the site and requests a review.
  • Google's web.dev guide lists weak or reused passwords, missed software updates and outdated plugins and themes, and free copies of paid plugins from untrusted sites, among the top ways sites get hacked.
  • Google says a review for a site hacked with spam can take up to several weeks, a malware review a few days and a phishing review about a day.
  • Requesting a review before the site is truly clean only keeps the warning up longer, according to web.dev.

Why Would a Hacker Redirect My Small Business Website?

Your site is useful to them because it already has visitors and Google trust. Google's FAQ for hacked sites names "financial gain through web spam" as a common motive: placing spam links on your site or redirecting your traffic elsewhere. Other motives on the same page include stealing customer data and spreading malware.

The redirect is often designed to hide from you. Google's hacked content policy gives the example of a page that redirects to a suspicious site when someone clicks it in Google Search results, but loads normally when the same URL is typed straight into a browser. The same page lists "showing desktop users a normal page while redirecting mobile users to a completely different spam domain" as a sneaky redirect. That is why owners often hear about the problem from a customer first.

Not every redirect is a hack. Moving to a new domain or merging pages are legitimate redirects in Google's own policy. If Search Console simply lists some URLs as "Page with redirect", that is a normal indexing status; our guide on fixing "Page with redirect" in Google Search Console covers that case. A redirect to a site you do not own, selling something you do not sell, is the warning sign.

How Do I Confirm My Website Is Hacked If I Cannot See the Redirect?

Do these checks before you pay anyone. They take under an hour and give you the evidence a developer, your host or a security company will ask for.

  • 1. Check Search Console: Sign in to Google Search Console (or verify your site if you never have) and open Security Issues. Google's web.dev guide says this is where example URLs flagged as hacked are listed.
  • 2. Search your own domain: Type site:yourdomain.com into Google. Web.dev recommends this to spot pages a hacker added, such as product or pharmacy pages you never created.
  • 3. Use URL Inspection: Inspect one of the odd URLs in Search Console to see what Google sees, which can differ from what you see.
  • 4. Test like a visitor from Google: Search for your business on a phone that is not logged in to your site, click your result and note where you land. Write down the time, device and the spam address.
  • 5. Check the Safe Browsing status: Enter your domain in the Google Safe Browsing site status tool to see whether Google currently lists it as unsafe.
  • 6. Ask your developer to fetch pages with cURL: Google's Security Issues help shows how cURL with a Google referrer and different user agents can reveal redirects that only fire for search visitors.

Sources for these steps: web.dev: How do I know if my site was hacked?, the Google Safe Browsing site status tool and the Search Console Security Issues report help. One caution from Google's malware guide: avoid opening infected pages in your normal browser, because malware can exploit browser weaknesses. Use cURL, a spare device, or let your developer do it.

How Do I Fix a Website That Redirects to Spam? Step by Step

This is the order Google's hacked-site guides follow. If your site runs on WordPress, Joomla, Drupal or a custom PHP site on your own hosting, these steps apply directly. On a hosted builder (for example a site-builder platform where you cannot reach the files), contact the platform's support first, because only they can see the server.

  • 1. Take a full backup of the hacked site: Copy all files and the database before changing anything. It keeps evidence and a way back if a cleanup step breaks something.
  • 2. Change every password: Hosting control panel, FTP/SFTP, database, every website admin account, and the email account that can reset them. Turn on two-step login wherever it is offered.
  • 3. Remove unknown admin users: Web.dev lists newly created administrator accounts as a common sign of an attack.
  • 4. Find the redirect: Check the server configuration (on Apache, the .htaccess file), the site's HTML and PHP files for injected JavaScript or encoded code, the database for scripts or iframes in ordinary text fields, and odd new folders. GoDaddy's help centre shows examples of redirect files hidden in random folders that use a meta refresh tag.
  • 5. Replace core files and plugins with clean copies: Reinstall your CMS, theme and plugins from the official source rather than editing infected copies. Delete plugins and themes you do not use; web.dev says to remove all their files, not just disable them.
  • 6. Restore from a clean backup if you have one: Your server logs can show when the hack started, which tells you which backups pre-date it, as Google's guide on identifying the vulnerability explains.
  • 7. Close the hole: Update the CMS, plugins, themes and server software, remove any free copies of paid plugins downloaded from untrusted sites, and scan every computer used to log in to the site. Web.dev notes that an infected admin computer can leak your passwords again.
  • 8. Re-test as a search visitor: Repeat the phone test and the cURL test from the previous section on the homepage and on the URLs Google listed.
  • 9. Request a review in Search Console: Only when the whole site is clean. Explain briefly what you removed and what you fixed.

Sources for these steps: web.dev: Identify the vulnerability, web.dev: Top ways websites get hacked by spammers, web.dev: FAQ for hacked sites and GoDaddy Help: Are there malicious redirects on my website?. If the attacker gets back in a few days later, step 7 was missed: the original weakness is still open.

How Do I Get Google's "This Site May Be Hacked" Warning Removed?

According to Google Search Help, the "This site may be hacked" message appears when Google believes a hacker changed existing pages or added spam pages, and it will not be removed until the owner acts. Google asks you to check the Security Issues section, fix the weakness that let the attacker in, and request a review once the whole site is clean. If your site spread malware, the label in search results is "This site may harm your computer" instead.

Google's request a review guide sets out what to expect:

  • Before you ask: Your site must be verified in Search Console, cleaned, patched and back online, and the pages must not be blocked by robots.txt or noindex.
  • What to write: A short note per problem type, for example that you removed spam pages and updated an out-of-date plugin.
  • Spam hacks: Reviews can take up to several weeks because they may involve manual checks.
  • Malware: Reviews take a few days; the answer arrives in Search Console Messages.
  • Phishing: Reviews take about a day.
  • After approval: Google says warnings in browsers and search results are removed within 72 hours.
  • If you ask too early: The site stays flagged longer, and Search Console may list new example URLs to investigate.

Should I Fix It Myself, Ask My Host or Hire Help?

Google's identify-the-vulnerability guide expects you to have server, database and file access, comfort with shell commands and the ability to read code such as PHP or JavaScript. If that is not you, the realistic options are:

  • DIY: Free apart from your time. Suitable if you or a staff member are comfortable with hosting panels, file managers and database tools, and you have a clean backup.
  • Your hosting company: Many hosts publish hacked-site help (GoDaddy's is linked below). Ask what they will clean, whether it costs extra, and whether they will tell you how the attacker got in.
  • A security cleanup subscription: Published example, checked December 2, 2026: Sucuri lists its Basic Platform at $229 a year, Pro at $339 a year and Business at $549 a year for one site, with unlimited malware cleanups. Treat these as one vendor's list prices, not a market average.
  • A web developer or agency: Useful when the cleanup also needs plugin replacements, a rebuild on a supported platform, or ongoing updates so it does not happen again. Ask for a fixed written quote and a report of what was found.

Whoever you hire, ask four questions: What exactly did you remove? How did the attacker get in, and is that hole closed? Which passwords and users did you change? Who will request the Google review? A cleanup without an answer to the second question is the most common reason a site gets reinfected.

Scam warning: be careful with unsolicited emails or calls saying your site is hacked and asking for payment or your passwords. Check Search Console yourself first, and never send login details to someone you did not contact.

How Do I Stop My Website Being Hacked Again?

The WordPress hardening guide and Google's list of top ways sites get hacked point to the same short checklist:

  • Updates: Keep the CMS, theme and plugins current. WordPress says older versions are not maintained with security updates and has offered automatic updates since version 3.7.
  • Fewer plugins: Delete what you do not use and never install free copies of paid plugins from unofficial sites.
  • Passwords: Use a unique, long password for every account and turn on two-step login.
  • Admin access: Give admin rights only to people who need them, and remove old developers and staff.
  • Backups: Keep regular backups stored away from the server, and test that you can restore one.
  • Monitoring: Keep Search Console verified so Google can alert you, and review the Security Issues report after any odd traffic spike.
  • Ownership: Make sure the hosting, domain and admin logins are in your name; our website handover checklist explains how.

If an old developer still has the only login, start with our website handover checklist for business owners, because you cannot clean or protect a site you do not control.

Common Mistakes That Keep the Spam Redirect Coming Back

  • Deleting only the redirect line: Attackers often leave more than one backdoor; web.dev advises continuing to search even after you find one problem.
  • Restoring a backup taken after the hack: Check your logs for when it began first.
  • Changing the website password only: The hosting, FTP, database and email passwords matter just as much.
  • Requesting the Google review too early: It prolongs the warning.
  • Testing only from your office computer: Hacked redirects often target search visitors or mobile users, so test both.

Get Help Cleaning and Securing Your Website

If you would rather not do this yourself, our cybersecurity essentials service covers a website security audit and hardening, HTTPS and security headers, two-factor login, backups and a recovery plan. We will tell you what we found and what we changed, and we do not promise results Google has not confirmed: removing the warning is Google's decision after its review.

Conclusion

A website redirecting to spam is a hacked website, and the redirect is usually built to hide from its owner. Confirm it in Search Console and with a search-visitor test, back up, change every password, clean or restore the files and database, close the weakness the attacker used, and only then request a Google review. Keep software updated, delete unused plugins, use two-step login and keep tested backups so it does not happen again.

Keep reading