.htaccess attacks are very frustrating, period! I wanted to write this to share the numerous methods and techniques I used to recover my websites from a recent .htaccess attack.
This type of attack on WordPress install will create .htaccess files on every single directory of the install and that file would have some codes that would modify directory access. I tried various things. I deleted these files, but it got recreated instantly.
Change Login Passwords
First step is to change login passwords to something super strong. In wordpress, in Cpanel, and in webhost.
Rename The Main Folder
This is the only thing that stopped the auto-generated index.php and .htaccess files from re-creating – to change the name of the main folder that houses all WordPress install files from FTP.
Once you rename this folder, you will have to go into cpanel and make sure the correct folder name is updated for the domain and any other places that use folder location.
Security Scan the Hell Out of It
I used Wordfence plugin and use their free Scan feature to scan the entire directory of the WordPress install. The beauty of this plugin scanner is, it will show which files are infected or modified, or injected. You can directly delete those files.
Alternatively, you can also go into FTP and delete .htaccess files but that is a very tedious process. I found this scanner plugin did a much better job.
If core files are modified, you will want to download a new WordPress copy of the same version you have installed and replace those files. Wordfence plugin was able to replace those with core files as well.
Add Protections For Future
I have installed Sucuri Security plugin after clearing out everything. I like this plugin because it can send me notifications of any changes to files or changes to content.
If your web host provides any security products you can also activate those.
You could also add Login Limit Plugins and modify login page url plugins such as WPS Hide Login.
3 months ago
Educated People Have Caused More Destruction, Than Those Who Are Not
I once saw in a small village in Sri Lanka where people live bare minimum very close to nature. No plastic, no processed foods, no fad diets, no exercise regime,…
Read More5 months ago
How I recovered from .htaccess attack on WordPress install
.htaccess attacks are very frustrating, period! I wanted to write this to share the numerous methods and techniques I used to recover my websites from a recent .htaccess attack. This…
Read More9 months ago
Procrastination
If you are procrastinating something, that means obviously you don’t like what you have to do. If you like what you have to do, you wouldn’t stop doing it, wouldn't…
Read More10 months ago
10 Amazing Books that Rocked My Ship in 2022 and More
2022, I found myself moving deeper toward the inner layers of existence away from scientific theories and applications of rat experiments into human behavior. I found myself going deeper into…
Read More10 months ago
Super Charging The Roti
Coconut roti made with flour, coconut, salt, and water is a very easy-to-make staple in Sri Lankan cuisine. It has become something I quite enjoy - eating with Pol sambal…
Read More1 year ago
Interfaces From Past
Our souls are so amazing that they can create amazing interfaces at the point of discomfort or struggle to protect ourselves from further pain and from future pain. In those…
Read More1 year ago
Do our desires for pleasures own us in this modern world?
I think when sages said staying with pain opens doors to greater wisdom and consciousness and that we shouldn't chase after pleasure. - what they meant is: life is fundamentally…
Read More2 years ago
Stupidly Simple Act of Touching The Earth
Starting from the year 2022, I have been trying to do more of two new things - standing/walking barefoot on grass and getting sun rays on my skin. Such easy…
Read More2 years ago
14 Exciting Books that Changed My Trajectory in Life During 2021
2021 was a slow year for the number of books I read compared to 2020. Mainly because the deep nature of the books, which needed more time to comprehend. But…
Read More2 years ago
Gold Was Always There - Teachings from East to a New Life
I come from the eastern part of the world relatively called east by British Emperor. From there I left the east completely to submerge myself in the west, for my…
Read More2 years ago
Stock Tank with a bucket of Ice
Since coming across the ice man in "Tools of the titans" by Tim Ferris, my interest grew of Wim hof. I have read his book "Wim hof method" and another…
Read More