I have a htaccess with this code:
<FilesMatch ".(py|exe|phtml|php|php5|php7|php8|cache|suspected)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<FilesMatch "^(index.php|aboutindex.php|menuindex.php|locks.php|test2index.php|press.php|pressindex.php)$">
Order Allow,Deny
Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
soon i delete it let me update joomla but you should check federal template for a breach please