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
質問済み 1年前362ビュー
1回答
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
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ