wordpress 密码_如何阻止用户共享WordPress中的密码

wordpress 密码

By default a WordPress user can login to an account from multiple locations at the same time. This may compromise security of your multi-author WordPress site, and it can definitely hurt your profits if you run a membership site. In this article, we will show you how to stop users from sharing passwords in WordPress by blocking concurrent logins.

默认情况下,WordPress用户可以同时从多个位置登录帐户。 这可能会损害多作者 WordPress网站的安全性,并且如果您运行会员网站,则肯定会损害您的利润。 在本文中,我们将向您展示如何通过阻止并发登录来阻止用户在WordPress中共享密码。

WordPress如何处理用户会话? (How WordPress Handles User Sessions?)

Prevent Concurrent Logins

Before we move on, lets talk a bit about how WordPress handles user sessions. Like many other web applications, WordPress uses cookies to identify a logged in user. These cookies do not contain your password, just your username and a special key as a proof that you knew the password.

在继续之前,让我们先谈谈WordPress如何处理用户会话。 与许多其他Web应用程序一样,WordPress使用cookie来标识已登录的用户。 这些cookie不包含您的密码,仅包含您的用户名和一个特殊密钥,以证明您知道该密码。

Now if you access your site from a public location and by habit checked “Remember Me” button, then anyone from that computer can login to your site because WordPress allows the same username to be logged in from two different locations.

现在,如果您从公共场所访问站点,并按习惯选中了“记住我”按钮,则该计算机上的任何人都可以登录到您的站点,因为WordPress允许从两个不同的位置登录同一用户名。

This is a bit troublesome for security, but it can also be bad for business if you run a membership site selling premium content.

这对于安全性来说有点麻烦,但是如果您经营一个销售高级内容的会员网站,这也可能对业务不利。

Users can simply share their password with their friends and use the same login information to consume your paid content.

用户可以简单地与朋友共享密码,并使用相同的登录信息来消费您的付费内容。

Now wouldn’t it be nice if you could prevent users from staying logged into the same account from multiple places?

现在,如果您可以阻止用户从多个位置登录到同一帐户,那不是很好吗?

Recently when a user asked us this question, we looked around and found a plugin that prevents concurrent logins.

最近,当一个用户问我们这个问题时,我们环顾四周,发现了一个阻止并发登录的插件。

防止WordPress中的并发登录和密码共享 (Prevent Concurrent Logins and Password Sharing in WordPress)

Concurrent logins in WordPress
影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

First thing you need to do is install and activate the Prevent Concurrent Logins plugin. It works out of the box and there are no settings for you to configure.

您需要做的第一件事是安装并激活防止并发登录插件。 它开箱即用,没有可供您配置的设置。

You can test the plugin in action by signing in to your WordPress site from two different browsers on your computer or using the private / incognito mode.

您可以通过从计算机上的两个不同浏览器登录WordPress网站或使用专用/隐身模式来测试该插件的运行效果。

When you try to login to your site with the same username and password on the second browser, you will be able to successfully login. However, the plugin will terminate the old session, and clicking on any link in the previous browser window will take you to the login page.

当您尝试在第二个浏览器上使用相同的用户名和密码登录到站点时,将能够成功登录。 但是,该插件将终止旧会话,并且单击上一个浏览器窗口中的任何链接将带您进入登录页面。

That’s all. We hope this article helped you learn how to stop users from sharing passwords in WordPress by blocking concurrent logins. You may also want to check out our guide on how to monitor user activity in WordPress with Simple History.

就这样。 我们希望本文能帮助您了解如何通过阻止并发登录来阻止用户共享WordPress中的密码。 您可能还需要查看我们的指南,了解如何使用简单历史记录监视WordPress中的用户活动

Also just a friendly reminder: Passwords can be hacked. If you wan to avoid this, then you need to use strong passwords on your WordPress site. You may also want to force strong passwords for all users on your WordPress site.

还要提醒您:密码可能会被黑客入侵。 如果您想避免这种情况,那么您需要在WordPress网站上使用强密码 。 您可能还想对WordPress网站上的所有用户强制使用强密码

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterGoogle+上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-stop-users-from-sharing-passwords-in-wordpress/

wordpress 密码

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值