April 2, 2022
2 min read
You can find easy ways to deal with malware in this article. With the short steps that we provide, the website will be clean again.
In addition, we will also provide ways to prevent malware from attacking your website again.
No need to buy any more time, let’s discuss how.
How to Correct Malware on Websites
Combing websites and cleaning them from malware can be done in at least two ways, namely manually and with the help of plugins.
Let’s discuss the first method, namely the manual method.
1. How to Fix Malware Manually
In this way, you have to look for suspicious things on the website using the command line.
The first step that needs to be done is logging into the server using SSH or opening a cPanel terminal.
After that, look for a directory of sites that have been infected by malware.
To access the terminal, please look for the Advanced menu in cPanel. This option is on the main page of the cPanel menu.
Your WordPress is likely in a directory named public_html or in the directory public_html.
Then, enter the following command into the terminal:
find . -name ‘*.ph*’ -mtime -7
By entering this command, you can see a list of PHP files that have been modified in the last seven days.
Maybe you will see thousands of WordPress files and that can hide the malware file you are looking for, or in other words, tucked away.
Well, just assume wp-config is the one above itself, look over there for any suspicious code.
Apart from that, you can also check the index.php file and look for SQL files that could be, that is the source of the problem.
2. Automatically Solve Malware
What is meant by automatic here is to use other tools or plugins to scan and eliminate suspicious files that contain malware.
To do this, you can use tools like:
- Sucuri (online tool) to scan files and you can delete them after Sucuri scans them successfully.
- Wordfence (plugin) functions the same as Sucuri, this plugin can perform malware scans.
- BulletProof (plugin) a complete plugin to increase the security of your WordPress website.
- All in One SEO (plugin) a complete plugin to solve WordPress website security problems.
Losses Caused by Malware
Malware can have a bad impact on your website. Especially if the website is a source of livelihood.
Find out what are the possible losses due to this malware.
1. Decrease in Visitors
Not only decreasing, your visitors can just run away when they find out that the website they are visiting has malware.
They will choose to leave the website immediately and look for a safer website to visit.
2. Loss of Income
The decrease in visitors means that you do not have the opportunity to increase the coffers of rupiah.
This way your income will be lost and this will be very dangerous for the continuity of the business being run.
3. Declining Visitor Trust
The trust of visitors will decrease and they will be reluctant to provide information to your website.
In fact, visitor data is also important such as their name and email or account information which is very important for business and even visitors.
4. Your Data Stolen
Theft, although in the form of data, is still theft and the results can be fatal. You don’t know what the data will be used for.
As long as the data is in the hands of hackers or those responsible, you should be vigilant.
5. Data Loss
Worse yet, your data is not only stolen but also disappears. Don’t let this happen to you.
To prevent this, you need to be diligent in updating WordPress plugins and versions as well as doing regular backups.
Well, here’s how to deal with malware on websites. To deal with malware on your device, you can read the article titled 10 Most Effective Ways to Eliminate Malware.
See you in the next article!