开发者

Securing files and folders with htaccess

I have a couple of files on my server that contains sensitive information. Only the server should be allowed to edit these files, no one else should be able to read/access them. They are stored as .txt.

I've stored them in a separate folder, and added a .htaccess file with:

<Files *>
Deny from all
</Files>

My question is weather it开发者_运维知识库's secure enough to store sensitive information with .htaccess, or if someone can hack it and get access to the files?

Thanks


.htaccess is as secure as you can get, on a server-side basis.

All .ht files by default are un-accessible to the public, so no-one can edit or view the .htaccess file unless they access it through FTP ect. So the .htaccess file is secure as your server is.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜