This article explains website infections with spyware/malware, which can cause your site to appear as unsafe in search engines or antiviruses.
Symptom
When searching for your site on Google or another search engine, a warning may appear below the link indicating that the site may harm the computer or contains malicious software.
What is malware?
Malware is software that infiltrates a system to damage it or steal information without the user's consent. It includes viruses, trojans, spyware, and other types.
What is spyware?
Spyware is a type of malware that installs itself hiddenly to collect information about the user's activity (browsing, passwords, personal data) and send it to third parties.
On infected websites, malicious code can redirect visitors to fake pages or try to infect their computers. It also consumes hosting bandwidth.
Possible causes of infection
- Stolen FTP password: spyware or keylogger on your PC allowed automated access to upload malicious files.
- Infected PC when uploading files: you uploaded the site from a computer with malware without knowing it.
- Compromised panel access: username and password captured by keylogger; the attacker modified files via FTP or panel.
- Web application vulnerabilities: outdated CMS (WordPress, Joomla, etc.) allowed uploading malicious code.
- Detection by StopBadware and partners: organizations like StopBadware catalog sites with malicious code and inform partners (Google, PayPal, etc.).
Other means of infection
In addition to classic spyware, there may be malware that displays messages when browsing the site, included in pages during design from an infected PC. That's why it is advisable to scan with an antivirus all PCs from which you access the FTP or the panel.
Solutions — Recommended steps
Warning: Removing incorrect files can break the site. Make a backup before any changes.
1. Clean your PC
Scan with an updated antivirus and antispyware all computers from which you access the FTP or control panel. This prevents re-infecting the server upon reconnecting.
2. Update the browser
Use the latest version of your browser to reduce risks when managing the site.
3. Locate and remove the malicious code
Access the site folder (FTP or file manager) and check the HTML/PHP files for suspicious code: hidden iframes, encoded document.write, scripts from unknown domains.
You can also check the source code from the browser: right-click → View page source on each important page.
Check the knowledge base article on website malware removal for examples of suspicious code.
4. Change passwords
Change all access passwords: FTP, hosting panel, email accounts, and CMS administrator.
5. Upload clean content
Delete the infected content from the server and upload a clean and verified copy, or restore from a backup prior to the infection.
6. Request a review on Google
If Google marked your site as suspicious, request a review in Google Search Console (formerly Webmaster Central).
You can also use the StopBadware form.
The warning usually disappears within up to 7 days once Google re-analyzes the site without detecting malicious code.
Prevention
- Use strong passwords (letters, numbers, and symbols). Avoid simple passwords like
123456orqwerty. - Keep CMS, plugins, and themes updated.
- Scan your PC before uploading files to the server.
- Do not access the panel or FTP from public networks or equipment without caution.
Do you need help?
If you cannot identify or remove the infection, contact technical support from the client portal or the site's online chat.
