MediaWiki/Toegangscontrole

From OchaWiki
Jump to navigation Jump to search

File:BookSeries.png

Deze pagina maakt deel uit van de serie MediaWiki.
Note: this page needs to be updated! 10:58, 13 May 2024 (UTC)

[[Tocright}} Lees ook: Mediawiki.org: Manual:Preventing_access

Introductie

Het artikel Mediawiki.org: Manual:Preventing_access beschrijft de volgende punten:

1 Simple private wiki
2 Restrict account creation
3 Restrict editing
3.1 Restrict editing of all pages
3.1.1 Restrict anonymous editing
3.1.2 Restrict editing by all non-sysop users
3.1.3 Restrict editing by absolutely everyone
3.2 Restrict editing of an entire namespace
3.3 Restrict editing of certain specific pages
3.4 Restrict editing of all but a few pages
3.5 Restrict editing for certain IP address ranges
3.6 Restrict editing by a particular user
3.7 Restrict creating of all pages
3.8 Restrict creating pages in certain namespacesv
4 Restrict access to uploaded files
4.1 Example for access restriction to uploaded files in the server configuration
5 Restrict viewing
5.1 Restrict viewing of all pages
5.2 Restrict viewing of certain specific pages
6 Restricting exporting
7 Removing the Login link from all pages
8 Removing accounts
9 Other restrictions
10 See also

Invulling

1 Simple private wiki

Voor de algemene use case van "een privé-wiki, voor jezelf en voor anderen goedgekeurd", moet je:

Template:Warning

<syntaxhighlight lang="php">

  1. Disable reading by anonymous users

$wgGroupPermissions['*']['read'] = false;

  1. Disable anonymous editing

$wgGroupPermissions['*']['edit'] = false;

  1. Prevent new user registrations except by sysops

$wgGroupPermissions['*']['createaccount'] = false; </syntaxhighlight>

<translate> Depending on what extensions you have installed, you may want to whitelist more pages.</translate> <translate> For example if you are using the <tvar name=1>Extension:ConfirmAccount</tvar> extension, you probably want Special:RequestAccount whitelisted.</translate> <translate> If the content language of your wiki is not English, you may have to use the translated name of the special pages in question.</translate>

<translate>

2 Restrict account creation

3 Restrict editing

3.1 Restrict editing of all pages

3.1.1 Restrict anonymous editing

3.1.2 Restrict editing by all non-sysop users

3.1.3 Restrict editing by absolutely everyone

3.2 Restrict editing of an entire namespace

3.3 Restrict editing of certain specific pages

3.4 Restrict editing of all but a few pages

3.5 Restrict editing for certain IP address ranges

3.6 Restrict editing by a particular user

3.7 Restrict creating of all pages

3.8 Restrict creating pages in certain namespaces

4 Restrict access to uploaded files

4.1 Example for access restriction to uploaded files in the server configuration

5 Restrict viewing

5.1 Restrict viewing of all pages

5.2 Restrict viewing of certain specific pages

6 Restricting exporting

7 Removing the Login link from all pages

8 Removing accounts

9 Other restrictions

10 See also