Shared hosting malware scans automatically check websites hosted on a shared server for known malicious code, suspicious files, and signs of compromise. They work by comparing your site’s files against databases of malware signatures and by looking for behavioral red flags like obfuscated PHP or unexpected file modifications. When a scan finds a problem, it typically quarantines the infected file and alerts you, but the scan itself is only the detection step—removing the infection and fixing the vulnerability that let it in is up to you.
Formula
The infection rate is calculated as the number of infected files divided by the total number of files scanned, multiplied by 100 to get a percentage:
Infection rate (%) = (Infected files / Total files scanned) × 100
Where:
- Total files scanned – the number of files the malware scanner checked (unit: count).
- Infected files found – how many of those files were flagged as malicious (unit: count).
- Infection rate – the proportion of infected files, expressed as a percentage.
This is a simple ratio that helps you gauge the severity of an infection. For example, 5 infected files out of 1,000 gives a 0.50% infection rate.
Worked Example
Using the default values from the calculator above:
- Start with 1,000 files scanned.
- The scanner flags 3 files as infected.
- Divide the infected files by the total: 3 ÷ 1,000 = 0.003.
- Multiply by 100 to get the percentage: 0.003 × 100 = 0.30%.
- The clean file count is 1,000 − 3 = 997.
So with those inputs, the infection rate is 0.30% and 997 files are clean. The calculator rounds the percentage to two decimal places, so a very small infection like 1 in 10,000 files shows as 0.01%.
Background: Why Shared Hosting Is a Target
Shared hosting means your website lives on the same server as dozens or hundreds of other sites, all running under the same operating system and web server software. That architecture is what makes hosting affordable, but it also means a single compromised account can sometimes be used to attack others on the same machine. Malware scanners for shared hosting exist because the hosting provider has a strong incentive to keep the whole server clean—one infected site can send spam, host phishing pages, or redirect visitors to malicious sites, which can get the server’s IP address blacklisted and affect every other customer.
Most shared hosts now run automated scans on a schedule, often daily or weekly. The scans are typically signature-based, meaning they look for exact or fuzzy matches to known malware code, and heuristic-based, meaning they look for patterns that are common in malware even if the exact file has never been seen before. Heuristic detection catches things like base64-encoded strings in PHP files, eval() calls with encoded input, or files that have been modified recently in a way that suggests an automated attack.
How Shared Hosting Malware Scans Work
When a scan runs, it goes through the file system of your hosting account and checks each file against a set of rules. The process generally involves:
- Signature matching – comparing file contents against a database of known malware hashes and code snippets.
- Heuristic analysis – looking for suspicious structures like long encoded strings, unusual function calls, or files that are executable in directories where they shouldn’t be.
- File integrity checks – comparing current files against a baseline of the original installation to spot unexpected changes.
- Database scanning – checking for SQL injection payloads or malicious entries in your site’s database tables.
- Outbound traffic monitoring – watching for signs that your site is sending spam or participating in a botnet.
When the scanner finds something, it usually quarantines the file—renames it or moves it to a folder where it can’t be executed—and sends you an email notification. Some hosts also give you a control panel interface where you can review the findings, download a copy of the original file, or request a cleanup.
What the Scan Results Actually Tell You
The scan report is only the starting point. If it finds malware, you need to know three things: what the malware does, how it got there, and what else might be affected. The scan tells you the first, sometimes the second, and rarely the third. For example, a scanner might flag a file like wp-load.php that contains a backdoor. That tells you the file is malicious, but it doesn’t tell you whether the attacker also modified your .htaccess file or added a rogue admin user to your database.
That’s why a clean scan result doesn’t mean your site is safe. If the scanner only checks files and not the database, a compromised database can go unnoticed. If it only checks the public HTML directory, a malicious script placed outside it can persist. Most shared hosts scan the whole account, but the depth varies. Some only scan files that are accessible over the web, while others also check cron jobs, email accounts, and DNS settings.
How to Choose a Host with Good Malware Scanning
Not all shared hosting malware scans are equal. When comparing hosts, look at what the scan actually covers and what happens after detection. Key questions to ask:
- Does the scan cover all files in the account or only the public web directory?
- Does it check the database for injected content?
- How often does the scan run—daily, weekly, or on-demand only?
- Does the host automatically quarantine infected files, or do you have to do it manually?
- Is malware removal included in the plan, or is it a paid add-on?
- Does the host provide a restore point from before the infection?
A host that scans daily and automatically quarantines is more protective than one that scans weekly and only sends an alert. But be wary of hosts that charge extra for cleanup after the scan finds something—that’s a sign the basic plan doesn’t include full protection.
Common Problems with Shared Hosting Scans
False positives are the most common issue. Legitimate files, especially those from popular content management systems like WordPress, Joomla, or Drupal, can sometimes match a malware signature because they contain code that’s also used in exploits. For example, a plugin that uses base64_decode() for legitimate encoding purposes might be flagged. When that happens, you need to check the file manually or compare it against a known-good copy from the official source.
Another problem is that scans can miss malware that’s encrypted or obfuscated. Sophisticated attackers often use polymorphic code that changes its signature each time it’s deployed, so signature-based scanners won’t catch it. Heuristic scanners do better, but they also produce more false positives. Some hosts also skip scanning large files or files with certain extensions to save server resources, which can leave a gap.
Finally, a scan that finds nothing can give a false sense of security. If your site was compromised but the malware has already been removed by the attacker (or by another security tool), the scan will come back clean even though your site is still vulnerable. The scan is a snapshot in time, not a guarantee of safety.
What You Should Do After a Malware Detection
If your host’s scan flags something, act quickly but methodically. Here’s a practical sequence:
- Quarantine the file – if the host hasn’t already, isolate the infected file so it can’t be executed.
- Download a copy – keep the original for analysis, but don’t execute it.
- Change all passwords – including your hosting control panel, FTP, database, and CMS admin accounts.
- Check for unauthorized admin users – in WordPress, look at the
wp_userstable; in other CMSs, review the user list. - Review recent file changes – look for files modified around the time the infection occurred.
- Scan your local computer – if your PC is infected, it could reinfect the site after you clean it.
- Restore from a clean backup – if you have a backup from before the infection, restore it and then update everything.
- Update all software – core CMS, plugins, themes, and any custom code.
The most important step is finding the entry point. If you just delete the malware, the attacker can come back through the same hole. Common entry points are outdated plugins, weak passwords, and unprotected admin directories.
Comparison: Shared Hosting Scans vs. Other Security Tools
Shared hosting scans are not the same as a dedicated web application firewall (WAF) or a client-side security plugin. A WAF sits in front of your site and blocks malicious traffic before it reaches your server. A malware scan is reactive—it finds problems after they exist. A security plugin like Wordfence or Sucuri can do both, but they run on your hosting account and consume resources. Shared hosting scans are server-side, meaning the host runs them on the server itself, which doesn’t slow down your site as much.
Another difference is scope. A shared host’s scan covers all sites on the server, so it can detect cross-site infections that a plugin on a single site would miss. But it also means the scan is tuned for the average site, not your specific setup. A plugin can be configured to ignore certain directories or to alert you to specific changes, while the host’s scan is one-size-fits-all.
Costs and Limitations
Most shared hosting plans include basic malware scanning as part of the package. The cost is built into your monthly fee, which typically ranges from a few dollars to around $20 per month depending on the provider and plan. Some hosts offer more advanced scanning or guaranteed cleanup as a paid upgrade, often called “managed” or “pro” security. These can add $5–$15 per month.
The limitation is that the scan is only as good as the signatures and heuristics it uses. New malware appears constantly, and a scan that ran yesterday won’t catch a zero-day threat that emerged today. Also, shared hosting scans usually don’t cover client-side attacks like malicious JavaScript injected into your pages that only executes in a visitor’s browser. That requires a different kind of scanning, often done by external services.
Frequently Asked Questions
Will a malware scan slow down my website? Generally no. Scans run on the server and are scheduled to minimize impact, often during low-traffic hours. If a scan does cause a brief slowdown, it’s usually negligible for a typical shared hosting account.
Can I run my own malware scan on shared hosting? Yes, you can use a security plugin or a command-line scanner if your host allows SSH access. However, some shared hosts restrict certain commands or file access, so check your plan’s features. A plugin is often easier for non-technical users.
What’s the difference between a virus and malware in this context? A virus is a type of malware that replicates itself, but most website infections are not viruses—they’re backdoors, crypto miners, or spam senders. The term “malware” covers all of these, and that’s what the scanner looks for.
My scan says the site is clean, but Google flags it as deceptive. Why? Google’s Safe Browsing uses its own data, which may include blacklists from other sources. A clean file scan doesn’t guarantee the site isn’t on a blocklist. You may need to request a review in Google Search Console after cleaning the site.
Should I switch to a dedicated server for better security? Not necessarily. A dedicated server gives you more control, but you also take on all the security responsibilities. Shared hosting with a good provider that scans regularly can be secure enough for most small sites. The key is keeping your software updated and using strong passwords.
How often should I check the scan results? At least once a week, and immediately after you receive an alert. Many hosts send email notifications, but those can go to spam. Log into your control panel regularly to review the scan history.
Related
Formula used
in files | Files scanned | - | 1000 | 1 | 1000000 in infected | Infected files found | - | 3 | 0 | 1000000 out percent | Infection rate | % | (infected / files) * 100 | 2 out clean | Clean files | - | files - infected | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Valheim Server Not Showing in Community List Fixes
- DisplayPort vs HDMI: Which Cable Should You Use?
- Soundbar vs 2.1 Speaker System: Which Is Better?
- Survive Lava for Brainrot Tier List170 points
- MySQL Dump Import: Fix Common Errors
- Mouse Moving on Its Own? Causes & Fixes