Malware Scanner

How to use the malware scan to clean malware from your website?

Below are the simple steps showing how to use malware scan and clean malware from your website.

  1. Login to your dashboard and navigate to the ‘Malware Scan‘ tab.
  2. Now to begin a scan, click on “Start New Scan”.
  3. Once the scan starts, you can see details like “Files Scanned, Issues Found and Scan Time” along with a progress bar showing the real-time progress of the scan.
  4. Once the scan is complete, scroll down to see the scan results.
  5. If the malware scanner flagged some files for being malicious; you can delete those files right from your dashboard. Click here to learn how.


Removing the malicious code from the file:

Astra malware scanner flags the malware on your website and lets you review each infected file. It also lets you remove the malicious code from the files right from the dashboard. The following steps show how to remove malicious code from a flagged file:

1. Login to the Astra dashboard. Go to the Scan Results section under the Malware Scanner tab. Click on the ‘+’ icon next to the infected file, to find more information on the malicious code. Here, the “malicious text in the file” will be showing you the malicious code that’s present in the file.

2. You can locate the file as mentioned in the path. Below are some of the options you’ll find along with the details.

  • View File: It expands the code for you to review.
  • Ignore Scanning Until Changed: It does move the file to the ignore tab to instruct the scanner not to ignore the file anymore.
  • Never scan this file: It makes the file not to be scanned further.
  • Delete this file: Clicking on this would remove the malicious file from your server. Remember that this is an irreversible process and make sure to review them beforehand.

3. Now open the file as mentioned in the path from the website root and take a closer look at the modifications. 

  • If you’re an owner: Hackers often obfuscate the code which may be hard to detect and distinguish, in such a case get in touch with your developer.
  • If you’re a developer: You can distinguish between the code that you actually wrote and the malicious code that was added later. Once the malicious code has been found, you can remove it.

To schedule a scan:

  1. Navigate to the >Malware Scan>> Schedule Scans
  2. A different section loads will pop up with options:
  • Scan Frequency: Here you can set a frequency of scans that are needed to be performed as per your requirement.


  • Scan Timings: Here you can set the timings for the malware scanner to run a scan which will run only in that particular period of time.


  • Enable email notification of scheduled scan results: If you want to receive notifications to your email then enable the toggle next to “Enable email notification of scheduled scan results”.

In this way, you can use the malware scanner more effectively on a timely basis and protect the website from getting infected.

In case of any further queries, you can reach out to us through the support tab in your dashboard. We’ll be happy to help! 🙂

Was this helpful?