cPanel Virus Scan

How to Use the Virus Scanner in cPanel

This article describes how to use the virus scanner in cPanel to scan your account files for viruses, trojan horses, and other types of malware. You can scan e-mail files, files in public web and FTP directories, or your entire account.

By default, the cPanel virus scanner is not installed on Cloud and Dedicated servers. If you have one of these account types and would like this feature installed, please open a support ticket and we will install it for you.

What the Virus Scanner Looks for

The virus scanner in cPanel searches for viruses, trojan horses, malware, and other threats. It does this by using databases from several sources:

  • ClamAV: Clam AntiVirus is an open-source program that can detect a wide variety of threats. For more information about ClamAV, please visit
  • R-fx Networks: This virus definitions database is designed for shared hosting environments. For more information about the R-fx Networks Linux Malware Detect project, please visit


Running a Virus Scan

To run a virus scan, follow these steps:

  1. In the Advanced section of the cPanel home screen, click Virus Scanner


Showing the Virus scanner location in cPanel


  1. Under Start a New Scan, select which directory you want to scan:
    1. Scan Mail: This option scans the mail directory in your account, looking for viruses in incoming and outgoing e-mail messages
      1. You should run this scan if one of your recipients reports receiving a virus from you
    2. Scan Entire Home Directory: This option scans all of the files in your account
    3. Scan Public Web Space: This option scans the public_html directory in your account, looking for infected web site files
      1. You should run this scan frequently to check if any of your web site files are infected with known viruses
    4. Scan Public FTP Space: This option scans the public_ftp directory in your account, looking for infected files
      1. You only need to run this scan if you share files using FTP.
  2. Click Scan Now
    1. If there are a lot of files in the directory, the scan may take some time to complete


Showing the Start a New Scan form in cPanel Virus Scanner


  1. If the virus scan finds any infected files, you can specify what to do with the files:
    1. Quarantine: When this option is selected, the virus scanner moves the file to the quarantine directory. The quarantine directory is located at/home/username/quarantine_clamavconnector, where username represents your account username
    2. Destroy: When this option is selected, the virus scanner deletes the infected file
    3. Ignore: When this option is selected, the virus scanner leaves the infected file unchanged
  2. To complete the virus scan process, click Process Cleanup
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Changing Joomla! Username

If you speed through the Joomla! installation through Softaculous, you may miss where it asks for...

cPanel Hotlink Protection

Hotlink Protection is a security measure that you can enable in your cPanel to prevent external...

Definition of Security Icons In cPanel

The Security section in cPanel allows you to keep your site protected and secure from a wide...

Generating a CSR Request (and What it is)

Now that you’ve purchased an SSL through Ch-center, you’ll receive an email with the link to...

Steps to Install and Setup an SSL from Scratch

This guide starts after you’ve fully generated your CSR request and received the official SSL...