如果你打算使用WordPress搭建半公开网站(设置访问权限),比如只允许已登录用户和某些IP地址的用户访问,那你可以使用 Restricted Site Access 插件来实现。安装该插件以后,可以在 设置 –> 阅读 下看到设置选项,在“站点可见性”选择对应的选项,然后可以设置重定向受限访客的方式以及IP白名单:

在后台插件安装界面搜索 Restricted Site Access 即可在线安装,或者下载 Restricted Site Access 。倡萌已将该插件汉化,下载简体中文包,解压后上传到该插件的 localization 目录即可(部分词条不支持翻译)。如果对插件的设置不了解,可以点击设置页面右上角的“帮助”查看。
来源:
https://www.wpdaxue.com/restricted-site-access.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_33164.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57