How to hide the .user.ini file on Lightsail

0

I have a WordPress site hosted on Lightsail and one of my plugins called Wordfence scanned and reported that I need to hide .user.ini file to prevent a security breach. Can anyone help me with this issue? Thanks

John
asked a year ago339 views
1 Answer
0

I think the problem can be solved by adding the following setting in .htaccess to prevent external access to .user.ini.

<FilesMatch "^(\.user\.ini)">
order allow,deny
deny from all
</FilesMatch>
profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions