The content of .htaccess
file get changed from the typical content made by WordPress to this :
# Apache 2.4+
<IfModule authz_core_module>
Require all denied
</IfModule>
# Apache 2.2
<IfModule !authz_core_module>
Deny from all
</IfModule>
This causes the site to stop working with a 403 error message. The site returns to work when I return the content of the file (.htaccess) to what it was (from a previous backup), but after periods that may be long or short, the same thing happens and all the content of the file (.htaccess) is erased and replaced with the text written above.
I am using Jelastic Paas + Lightspeed Web Server, I checked all the site files using BitNinja, I use Wordfense and Sucuri, so I don't know where the error is and how the file is replaced automatically and periodically. Any ideas in particular?
I tried scanning the files and i expected to find some malware, even after deleting some suspicious files nothing improved.
Edit1: installed plugins are :
- Checkout Files Upload for WooCommerce
- Code Snippets
- Contact Form 7
- Content for multiple Courses in LearnPress
- Cool Integration for LearnPress & WooCommerce
- Elementor
- Essential Addons for Elementor
- Facebook Chat Plugin - Live Chat Plugin for WordPress
- Flamingo
- LearnPress
- LearnPress - WooCommerce Payment Methods Integration
- Limit Max IPs Per User
- LiteSpeed Cache
- LoginPress - Customizing the WordPress Login Screen.
- LoginWP (Formerly Peter's Login Redirect)
- Nextend Social Login
- Password Strength Settings for WooCommerce
- Quiz Maker
- reCaptcha by BestWebSoft
- Redirection
- Redirection for Contact Form 7
- Simple History
- Sucuri Security - Auditing, Malware Scanner and Hardening
- TeraWallet
- UpdraftPlus - Backup/Restore
- User Switching
- VdoCipher
- WooCommerce
- WooCommerce Checkout Manager
- WooCommerce Checkout Manager PRO
- WooCommerce Wallet Coupons
- Wordfence Security
- WordPress Persistent Login
- Wordpress Special Characters in Usernames
- WP Mail SMTP
- WP Ultimate CSV Importer
- WP Ultimate Exporter
- WPC Fly Cart for WooCommerce
- WPC Product Bundles for WooCommerce
- WPFront Notification Bar