摘要: 1.移动 wp-config.php 文件的存放位置 wp-config.php 文件默认是在网站根目录保存的,把这个文件移动到别的位置就可以解决到这个隐患,WordPress 默认会在网站根目录寻找这个文件,如果没有找到,会继续往上层目录寻找。知道了这点,我们就可以把 wp-config.php 阅读全文
posted @ 2020-03-16 11:10 venkim 阅读(529) 评论(0) 推荐(0) 编辑
摘要: User-agent: * Disallow: /wp-admin/ Disallow: /wp-login.php Disallow: /readme.html Disallow: /licence.txt Disallow: /wp-config-sample.php Disallow: /re 阅读全文
posted @ 2020-03-16 10:41 venkim 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 在主题functions.php中添加以下代码 /** * add the register record. */ function get_client_ip() { if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP 阅读全文
posted @ 2020-03-16 09:47 venkim 阅读(583) 评论(0) 推荐(0) 编辑