In this article · 5 sections
Hacked websites often look perfectly normal when the owner visits. Attackers hide website malware so it only shows to Google, mobile visitors or people arriving from search, which means problems can run for weeks. Here's what to watch for.
10 warning signs
- Strange pages in Google: search
site:yourdomain.comand look for Japanese, casino, pharmacy or "replica" pages - Mobile redirects: visitors from Google on phones get redirected to spam or "you won a prize" pages
- Browser warnings: "Deceptive site ahead" or "This site may harm your computer"
- Search Console alerts for security issues or a sudden spike in indexed pages
- Unknown admin users in WordPress or your custom admin panel
- New or modified files: odd PHP files in uploads/image folders, files named like
wp-cache.php,class.php, random strings - Hosting account suspended or warnings about spam emails sent from your server
- Slow site and high CPU usage
- Unexpected changes to
.htaccesswith redirect rules - Popups or ads you never added
Free ways to check
- Google Search Console → Security issues and Pages report
- Google Safe Browsing site status tool
- External scanners such as Sucuri SiteCheck (they only see the public side)
- Host malware scanners (many hosts, including Hostinger, offer them)
- Compare your files with your last clean backup
If you find malware
- Change hosting, FTP, database and admin passwords
- Take a backup of the infected state (for analysis), then clean or restore from a known clean backup
- Update CMS, themes, plugins, PHP version
- Remove unknown admin users and files
- Request a review in Search Console after cleaning
Full steps: website hacked recovery. For legal and reporting duties, see hacked website legal responsibility.
Prevention
- Keep software updated and remove unused plugins
- Strong passwords + 2FA for admin and hosting
- A web application firewall. See WAF explained
- Regular off-server backups
- Secure coding for custom PHP sites. See PHP security: SQL injection and XSS
FAQs
Can malware hurt my Google rankings?
Yes. Spam pages, redirects and warnings can cause heavy ranking and traffic losses until cleaned.
Is a small business site really a target?
Yes. Most attacks are automated bots scanning every site for known weaknesses.
Was this article helpful?
Your answer helps us improve our guides