WordPress-.htaccess-保护配置文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WordPress-.htaccess-保护配置文件相关的知识,希望对你有一定的参考价值。
The problemAs a WordPress user, you probably know how important the wp-config.php file is. This file contains all of the information required to access your precious database: username, password, server name and so on. Protecting the wp-config.php file is critical, so how about exploiting the power of Apache to this end?
Code explanation
.htaccess files are powerful and one of the best tools to prevent unwanted access to your files. In this code, we have simply created a rule that prevents any access to the wp-admin.php file, thus ensuring that no evil bots can access it.
Source
* 10 Easy Ways to Secure Your WordPress Blog
<files wp-config.php> order allow,deny deny from all </files>
以上是关于WordPress-.htaccess-保护配置文件的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf Wordpress .htaccess
apache_conf wordpress htaccess