最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

security - Should I prevent access to .htaccess and wp-config.php files?

programmeradmin2浏览0评论

Someone at stackoverflow suggested I should deny access to the two files by doing below in .htaccess.

<files ~ "^.*\.([Hh][Tt][Aa])">

order allow,deny

deny from all

satisfy all

</files>

<files wp-config.php>

order allow,deny

deny from all

</files>

The problem is it screwed up my installation of W3 Total Cache plugin cos it needs to write to those files.

Since my htaccess and wp-config were hacked a few times, what is the best way to protect these files?

发布评论

评论列表(0)

  1. 暂无评论