huanshui
V2EX  ›  WordPress

在用 wordpress 搭建博客,请教怎么做到“先登录在访问”,和“保护后台登录”这两个设置。

  •  
  •   huanshui · Oct 14, 2018 · 2207 views
    This topic created in 2778 days ago, the information mentioned may be changed or developed.

    各位大神,本人想对 wordperss 博客加入“先登录在访问” 和 “保护后台登录”这两个功能,细想后,先登录在访问,做的事即访问页面时定向到登录页; 保护后台登录,做的事即登录页面变更,两个功能有冲突啊: 如访问 http://www.myblog.com ,因设置先登录在访问,所以定向到 http://www.myblog.com/wp-login.php,再保护后台登录地址就没有意义了,请问大神,是怎么保护 wordpress 的。

    nfroot
        1
    nfroot  
       Oct 14, 2018 via Android   ❤️ 1
    用插件实现第三方登录。
    用 PHP 实现禁止密码登录、未登录不得访问后台任何内容或者访客登录了也不能进后台。

    都是很简单的事情,代码写在数据库密码旁,任何要调取数据库的页面都可以管控到。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2726 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 02:15 · PVG 10:15 · LAX 19:15 · JFK 22:15
    ♥ Do have faith in what you're doing.