To clean Non-WordPress files and folders, we need to first scan them. For us, the cleaning process comes after scanning.
By default, WPRemote only scans WordPress files and folders but you can add non-WordPress files or folders using the following process:
Step 1: Log into your WPRemote account and select a website from the Site Listing page.
Step 2: It'll take you to the Site Details page and in this page, there is a section called Security. Under this section, there is a sub-section called Scanner. Here you can click on the number of Hacked files detected.
Step 3: Scroll down on the page. It'll take you to a page, where you can select the infected non-WordPress file or folder that you want to clean. In this case, test-hack is the hacked folder that we want to clean. So we select it and then click on the Add button.
Step 4: The non-WordPress file is now added to be scanned by WPRemote.
Step 5: Now we will proceed to scan the files. On the Site Details page, select the Scan Now button under the Scanner sub-subsection.
Step 6: Once the scan is complete, WPRemote will tell you that your site is either clean or hacked. In our case, the site is hacked.
Step 7: Remember the non-WordPress folder that we added to be scanned. Turns out it was infected. To see what files are infected, select the number that appears beside the term Infected Files.
Step 8: In the screenshot below, you can see the non-WordPress file called test-hack that we had added earlier. It's one of the hacked files.
Step 9: Next, you have to clean the infected files.
And that’s it, folks. Your website is now clean.