Litespeed .htaccess getting malware constantly
-
I have a client with a Litespeed server whose .htaccess file is constantly being hacked with malware.
His site is using the Astra theme (seems good) and only a few plugins like:
Akismet, Contact Form 7, Elementor, WP Forms, All in One SEOThat’s all, only a few basic plugins and theme…. there are no weird folders or anything and just a basic control panel type of shared hosting. His website is using Cloudflare and apparently the hosting company has some security features but it doesn’t seem to be helping anything.
The database looks clean, WordPress Core was reinstalled multiple times. I did malware cleaning for many clients and I know most of the normal things to do for cleaning and security.
No matter what, this malware always comes back again:
<FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "(^my1.php|^wp-login.php|^wp-signups.php|^index.php|^style.php|^iR7SzrsOUEP.php|^xget.php)$"> Order allow,deny Allow from all </FilesMatch>
So his site becomes broken, and he can’t even login to WP Admin or click anything. Then I have to reset his .htaccess file again and remove the 2-3 PHP malware files. In the meanwhile his site is broken for a few days and sometimes also redirecting to “adult” spam websites which is hurting his website reputation.
I have tried everything to stop this happening.
- The topic ‘Litespeed .htaccess getting malware constantly’ is closed to new replies.