进行媒体Wiki的注册需要管理员批准吗? [英] Making registration for media wiki require admin approval?

查看:75
本文介绍了进行媒体Wiki的注册需要管理员批准吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我维护的Wiki受到垃圾邮件机器人的严重打击...我们的用户数量不多,我宁愿不给合法用户提供验证码.有没有简单的方法可以让管理员确认注册?我已经看过手册,却无法弄清楚该怎么做.

A wiki I maintain has been hit pretty hard by spam bots... we don't have a lot of users, and I'd rather not saddle the legitimate users with captcha. Is there a simple way to make registration confirmation go to an admin? I've looked through the manual, and haven't been able to figure out how to do it.

推荐答案

您可以创建新的用户权限,例如已批准",允许管理员分配该权限,并将诸如编辑之类的内容限制为仅允许已批准的用户使用,例如:

You could create a new user right, e.g. "approved", allow admins to assign that right and restrict things like editing to only approved users, like this:

// Disallow editing and uploading from anons and registered users
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;

// New user group: approved users
$wgGroupPermissions['approved']['edit'] = true;

// Allow admins to approve (and unapprove) users via Special:UserRights
$wgAddGroups['sysop']['approved'] = true;
$wgRemoveGroups['sysop']['approved'] = true;

请注意,删除edit权限还可以阻止未经批准的用户执行大多数直接或间接涉及以任何方式更改页面的操作,因此您无需明确撤销这些权限.

Note that removing the edit permission also stops non-approved users from doing most things that directly or indirectly involve changing pages in any way, so you shouldn't need to revoke those rights explicitly.

此外,您可以使用 $ wgNamespaceProtection来限制他们对某些命名空间的编辑,而不是完全撤消未批准用户的编辑权限(甚至可能使用常规的每页保护功能深入到那些名称空间中的某些页面),如下所示:

Also, instead of revoking editing rights from unapproved users completely, you could restrict their editing to certain namespaces using $wgNamespaceProtection (and perhaps further to certain pages in those namespaces using normal per-page protection), something like this:

// Limit editing of the main namespace to approved users
$wgNamespaceProtection[NS_MAIN] = array( 'edit-main' );
$wgGroupPermissions['approved']['edit-main'] = true;

这样,您可以设置一个页面,新用户可以在该页面上请求其可以编辑的名称空间之一的批准.

That way, you could set up a page where new users can ask to be approved in one of the namespaces they can edit.

有关更多信息,请参见手册:用户权限MediaWiki.org上的帮助:分配权限.

For more information, see Manual:User rights and Help:Assigning permissions on mediawiki.org.

这篇关于进行媒体Wiki的注册需要管理员批准吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆