Answer the question
In order to leave comments, you need to log in
Why is there a .htaccess file in each bitrix section?
The client complained that sections of the site were not opening, including the admin panel with a 403 Forbidden error. After searching a little, I found that in each of the sections (for example /bitrix/, /about/, /contacts/, etc.) there is a .htaccess file with the code:
<FilesMatch ".(phtml|php|PhP|php5|suspected)$">
Order Allow,Deny
Deny from all
</FilesMatch>
Answer the question
In order to leave comments, you need to log in
And you also have an .htaccess
file in the root of the site with a slightly longer almost similar content and an insert at the beginning of index.php with encrypted code and something referring to Wordpress.
If yes, then you are broken. Painfully familiar malware. Restore from backups and close all the holes you can. Most likely somewhere nearby lies a couple of other shells. For example, I often saw fot.php .
I won’t tell you how to treat, but I strongly recommend that you take care of security.
This is definitely not the work of Bitrix. Run a kernel change test, just in case.
Did you manage to find the reason? And on what hosting is the site hosted - virtual or VDS?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question