Beware potential phishing attack. See the full details here.

Hosting > Security

3 minute read

Scan files for malware & viruses in cPanel

WordPress is the most popular & easier installing CMS (Content Management System) software around the world and also makes it a especially target for attacker & hacker. Hacker can control your wordpress website and website using other CMS (like Joomla, Drupal etc.) to send spam or place a malicious code on your website. You can keep your wordpress website and other CMS protected from attacks.

How to Scan website for malware and viruses

However, In this guide we’ll explain you how to scan & clean your website through virus scanner in cPanel.
If your website will found to be infected then you can scan & clean your website using virus scanner in cPanel. Our malware scanner run daily & it will show if your website is still infected by scanning your website via virus scanner in your cPanel.

How to Scan or Use the Virus Scanner in cPanel for Scans your Website.

To run a virus scanner, follow these steps are:

Step 1) First of all you need to login to cPanel.

Steps 2) After logging in your cPanel, You need to go to in the “Advanced” section of the cPanel area and click on “Virus scanner”.

Virus Scanner in cPanel

Steps 3) After clicking on Virus Scanner, You will see Start a New Scan & under start a new scan you will also seeing following 4 directories:

Scan Mail: When you need to scan the particulars mail directory then this option scans the mail directory in your hosting account. It’s looking in outgoing & incoming e-mail messages for viruses. If one of the recipients reports receiving a virus from you then you should run this scan mail.

Scan Entire Home Directory: When you need to scan your all files in your hosting account then this option scans all of the files in your account. It’s looking for all of the infected your website files.

Scan Public Web Space: When you need to scan the particulars public_html directory then this option scans the public_html directory in your account, It’s considering for your infected website files. If any website files will be reported to be infected with virus then you should run this scan regularly to check.

Scan Public FTP Space: when you need to scan particulars public_ftp directory while sharing files using FTP then this option scans the public_ftp directory in your account. It’s looking for infected files. You need to run this scan when you are share files using FTP.

Step 4) Now you need to select a directory which you want to scan & clean as your desire.

Select Directory to Scan

Step 5) After selecting a directory as your desire then you need to click on “Scan Now”.

Click om Scan Now button

Step 6) After scanning the virus scan, If the virus scanner finds any infected files as your scanned directory then you can do it as below:

Quarantine: If you are select this option, the virus scanner transfer the infected files into the quarantine directory as located at /home/username/quarantine_clamavconnector where username represents with your actual account username.

Destroy: If you are select this option, the virus scanner deletes all of the infected files in your account.

Ignore: If you are select this option, the virus scanner can’t deletes the infected files. Its simply ignore the infected file unchanged.

Step 6) Now you need to select destroy option to destroy the malwares which are infecting the files in your hosting account.

Select Destroy Malware Option

Step 7) After selecting the desired option as described above, you need to click on Process Cleanup button.

Click on Process Cleanup button

Congratulations! Now you have successfully completed the virus scanner process & cleanup your website.