Website Hacked? Signs, Spam Links and What to Do First
- Hacked sites often look normal to the owner. The spam shows only to Google, or only to visitors on phones.
- Check Google Search Console's Security issues report and search Google for your own domain.
- Back up, change every password, clean or restore, update everything, then ask Google to review the site.
Finding out your website was hacked is stressful, and it happens to careful owners too. Most small-business sites are not targeted personally. Automated tools scan the internet for old software and weak passwords, and break in wherever they find one. The steps below help you stay calm and fix things in the right order.
Signs your website was hacked
- Google results for your site show strange titles, foreign characters or pages you never made, often selling pills, replica goods or other junk.
- Google shows "This site may be hacked" under your listing, or browsers show a red "Dangerous site" warning.
- Visitors say they ended up on a different website, especially from a phone or after clicking a Google result.
- Hidden links appear in your footer or page source.
- Your host suspends the account, or your email starts bouncing because the server sent spam.
- You find admin users, files or plugins you did not add.
Many hacks use tricks to hide from the owner. They may show spam only to Google's crawler, or redirect only first-time visitors from search results. Not seeing a problem yourself does not prove the site is clean.
How to check
- Search Google for your domain: type
site:yourdomain.com. Look for pages and titles you do not recognise. - Open Google Search Console and check Security issues and Manual actions. Use URL Inspection on your homepage to see the page as Google sees it.
- Check Google Safe Browsing: the Transparency Report's site status page tells you whether Google flags your site as unsafe.
- Test like a visitor: on a phone using mobile data, search for your business name and click the result.
What to do first, in this order
- Don't delete everything. Take a full backup of the hacked site (files and database) and keep it separate. It helps find how the attacker got in.
- Contact your host. Ask whether they see malware, which files changed, and whether they can share access logs. Many hosts offer scanning and can help.
- Change every password: hosting account, control panel, FTP or SFTP, database, every website admin account and the email accounts linked to them. Turn on two-factor login wherever possible, and remove any users you do not recognise.
- Clean or restore. If you have a clean backup from before the hack, restoring it is often fastest. Otherwise, replace the core software files with fresh copies and remove unknown files, especially script files inside upload folders. Check
.htaccessand similar server files for odd redirects, and search the database for injected links. - Update everything. Bring the CMS, theme and every plugin up to date. Delete plugins and themes you do not use, and never use "free" copies of paid plugins, which often carry hidden code.
- Find the way in. An outdated plugin, a reused password or an old forgotten copy of the site in a subfolder are common culprits. If you do not close the hole, the hack usually returns within days.
- Ask Google to review. Once the site is clean, open the Security issues report in Search Console and request a review. Make sure the spam pages now return "not found" and resubmit your sitemap.
- Keep watching. Check Search Console and your Google results weekly for a month. Re-infection is common when one back door was missed.
How to lower the risk next time
- Turn on automatic updates for security releases, and check plugins monthly.
- Use a password manager, unique passwords and two-factor login for every admin.
- Keep daily backups stored away from the server, and test a restore now and then.
- Give each person their own login with only the access they need.
- Watch for alerts: Search Console messages, uptime checks and host warnings.
When to call a professional
Call for help if the site handles payments or personal data, if the hack returns after cleaning, or if you cannot tell which files are yours. A professional clean-up is usually quicker than a second or third attempt.
Want a free check of your site?
Send us your web address. We'll look at it and tell you in plain English whether it has this problem, what else we notice, and what a fix would involve. Free, with no obligation.
Get a free site check →Sources
- Google Search Console Help: Security issues report
- Google Transparency Report: Safe Browsing site status
- WordPress: Hardening WordPress
- Google Search Central: Spam policies (hacked content)
General advice only: check with your host or developer before changing a live site. How we write.