How to stop malwares on your hosting websites.

Problem: PHP script malware that generates HTML files on the server which causes the server to overload.

Solutions:

1.) Locate what script is triggering the malware. You can ask the hosting support on which file the malware originates and they will send you a statistic on which file consumes the most CPU process.

2.) Confirm that you are aware of letting the hosting company delete the unwanted files. (Risky)

3.) Transfer the domains one-by-one and check if the transfered domain is generating malware HTML files that will cause the server to overload. (Quarantine the domains). Then delete the malwared domain on your hosting.

Recommendation:

I suggest we use the 3rd solution since it is safe but it will take us some time to transfer the domains and files to another server.

Warning:

Never install unwanted wordpress plugins or themes. Especially nulled and cracked themes/plugins. Most of these scripts are injected with malwares and rootkits.

Verify first if the source code is clean by checking if there are encrypted scripts and testing it first on a separate server/hosting.

Scenario:

36 domains to transfer and transferring 3 domains per day.

formula:

36/3 = 12 days to transfer all domains. transfering 3 domains per day.

7$ per hour(rate) * 8 hours(per day working hours) * 12 days

Total: 672$

Requirements:
1.) Godddy domain account
2.) Old hosting account
3.) New VPS server you can check at https://www.digitalocean.com/pricing/
4.) Webuzo panel license