wordpress上传限制
If you have ever dealt with a membership site, a WordPress multisite, or BuddyPress, then you know that there are always users who want to make your life difficult by registering usernames that contain foul language, trademark words, official sounding names, etc. In this article, we will show you how to restrict usernames in WordPress.
如果您曾经与会员网站,WordPress多站点或BuddyPress打过交道,那么您就会知道,总是有一些用户想要通过注册包含粗言秽语,商标用语,正式冠名等的用户名来使您的生活变得艰难。本文,我们将向您展示如何限制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 Restrict Usernames plugin. Upon activation, you will notice a new menu option under the Users tab called “Name Restrictions”.
您需要做的第一件事是安装并激活“ 限制用户名”插件 。 激活后,您将在“用户”选项卡下注意到一个名为“名称限制”的新菜单选项。
Simply add a list of restricted usernames. You can also add keywords in partial matching. It would be really nice if the plugin actually came with a database of restricted username that would include all the common ones.
只需添加受限用户名列表。 您还可以添加部分匹配的关键字。 如果该插件实际附带一个受限制的用户名数据库(其中包括所有常见用户名),那将是非常好的。
If a user tries to register with a name that is restricted, then they will see an error. It is important to remember that this plugin does not modify any existing users. So if someone already has a username “admin” then it will not be affected. Admins always have the ability to bypass these restrictions. So if microsoft wants to create an account on your website, you can easily create it for them.
如果用户尝试使用受限制的名称进行注册,那么他们将看到错误。 重要的是要记住,此插件不会修改任何现有用户。 因此,如果某人已经具有用户名“ admin”,那么它不会受到影响。 管理员始终可以绕过这些限制。 因此,如果Microsoft要在您的网站上创建一个帐户,则可以轻松地为他们创建一个帐户。
翻译自: https://www.wpbeginner.com/plugins/how-to-restrict-usernames-in-wordpress/
wordpress上传限制