admin管理员组文章数量:1391956
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?
本文标签: securityShould I prevent access to htaccess and wpconfigphp files
版权声明:本文标题:security - Should I prevent access to .htaccess and wp-config.php files? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744693101a2620114.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论