wordpress 安全: 保护 .htaccess 和 wp-config.php
.htaccess 和 wp-config.php 的重要性不言而喻,.htaccess 包含了站点的访问规则,wp-config.php 包含了数据库帐户和密码,保障它们安全的最好方法是完全禁止对它们的访问。
请在站点根目录下的 .htaccess 中添加如下内容:
<files .htaccess>
order allow,deny
deny from all
</files><files wp-config.php>
order allow,deny
deny from all
</files>
This entry was posted on Saturday, May 16th, 2009 at 7:39 am and is filed under wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


