Hi, I'm using Wordpress with the Wordfence security plugin.
I'm getting a Wordfence msg that www.example.com/.user.ini is publicly accessible.
I've tried adding the following to .htaccess
<FilesMatch "\.(htaccess|htpasswd|log|ini)$">
Order Allow,Deny
Deny from all
</FilesMatch>
that didn't work, so then this:
RewriteRule ^.*\.(log|ini|txt)$ - [F,L,NC]
and restarted OLS, but the file is still available.
Additionally, is there a guide on setting up .htaccess rules for Wordpress, OLS and GCP? It would be very helpful.
Thanks.
I'm getting a Wordfence msg that www.example.com/.user.ini is publicly accessible.
I've tried adding the following to .htaccess
<FilesMatch "\.(htaccess|htpasswd|log|ini)$">
Order Allow,Deny
Deny from all
</FilesMatch>
that didn't work, so then this:
RewriteRule ^.*\.(log|ini|txt)$ - [F,L,NC]
and restarted OLS, but the file is still available.
Additionally, is there a guide on setting up .htaccess rules for Wordpress, OLS and GCP? It would be very helpful.
Thanks.
Last edited: