博客有过被打经历,机子本身不带任何防御,防着点还是很有必要,接入Cloudflare CDN后,无法进入wordpress后台及带密码的页面,其实主要是因为使用了Cloudflare的SSL。其实为了解决这个问题 Cloudflare专门发布了一款Wordpress插件:Cloudflare Flexible SSL
解决办法一
取消接入的Cloudflare的DNS或者CNAME解析,进入到wordpress插件安装搜索Cloudflare Flexible SSL 安装启用,到此重新接入cloudflare即可奔放。
解决方法二
1.下载插件Cloudflare Flexible SSL 解压到plugins目录下
官方插件下载:https://wordpress.org/plugins/Cloudflare-flexible-ssl/
2.进入Mysql数据库,进入表 wp_options 中,编辑 option_name 中 active_plugins(激活插件)
找到option_value字段,添加蓝色部分
a:4:{i:0;s:33:"classic-editor/classic-editor.php";i:1;s:34:"cloudflare-flexible-ssl/plugin.php";}
修改并启用当前插件
开头的a:4,数字4为当前开启的插件数量,在之前基础上+1
至此已经完美解决此问题!