Difference between revisions of "MediaWiki/Toegangscontrole"

From OchaWiki
Jump to navigation Jump to search
(Created page with "{{TBN}} {{isStub|~~~~}} Lees ook: {{MWorg|h=y|Manual:Preventing_access}}")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TBN}}
+
{{TBN|r=
{{isStub|[[User:OllieB|OllieB]] ([[User talk:OllieB|talk]]) 15:18, 10 November 2021 (UTC)}}
+
y
 +
}}
 +
{{NeedsUpdate|d=
 +
10:58, 13 May 2024 (UTC)  
 +
}}
 
Lees ook: {{MWorg|h=y|Manual:Preventing_access}}
 
Lees ook: {{MWorg|h=y|Manual:Preventing_access}}
 +
== Introductie ==
 +
Het artikel {{MWorg|h=y|Manual:Preventing_access}} beschrijft de volgende punten:
 +
<!-- Uit de Contents van dat artikel komt -->
 +
 +
:{{sl|    1 Simple private wiki }}
 +
:{{sl|    2 Restrict account creation }}
 +
:{{sl|    3 Restrict editing }}
 +
:{{sl|        3.1 Restrict editing of all pages }}
 +
:{{sl|            3.1.1 Restrict anonymous editing }}
 +
:{{sl|            3.1.2 Restrict editing by all non-sysop users }}
 +
:{{sl|            3.1.3 Restrict editing by absolutely everyone }}
 +
:{{sl|        3.2 Restrict editing of an entire namespace }}
 +
:{{sl|        3.3 Restrict editing of certain specific pages }}
 +
:{{sl|        3.4 Restrict editing of all but a few pages }}
 +
:{{sl|        3.5 Restrict editing for certain IP address ranges }}
 +
:{{sl|        3.6 Restrict editing by a particular user }}
 +
:{{sl|        3.7 Restrict creating of all pages }}
 +
:{{sl|        3.8 Restrict creating pages in certain namespacesv }}
 +
:{{sl|    4 Restrict access to uploaded files }}
 +
:{{sl|        4.1 Example for access restriction to uploaded files in the server configuration }}
 +
:{{sl|    5 Restrict viewing }}
 +
:{{sl|        5.1 Restrict viewing of all pages }}
 +
:{{sl|        5.2 Restrict viewing of certain specific pages }}
 +
:{{sl|    6 Restricting exporting }}
 +
:{{sl|    7 Removing the Login link from all pages }}
 +
:{{sl|    8 Removing accounts }}
 +
:{{sl|    9 Other restrictions }}
 +
:{{sl|    10 See also }}
 +
 +
== Invulling ==
 +
===    1 Simple private wiki ===
 +
Voor de algemene [[w:use case|use case]] van "een privé-wiki, voor jezelf en voor anderen goedgekeurd", moet je:
 +
*[[#Beperk het bekijken van alle pagina's| Beperk weergave]]
 +
*[[#Restrict editing of all pages|<translate><!--T:40--> Restrict editing</translate>]]
 +
*[[#Restrict account creation|<translate><!--T:41--> Restrict account creation</translate>]]
 +
 +
{{warning|1=<translate><!--T:42--> See the warnings in the sections below; this is simple "general use" code, and may or may not match your requirements.</translate>}}
 +
 +
<syntaxhighlight lang="php">
 +
# Disable reading by anonymous users
 +
$wgGroupPermissions['*']['read'] = false;
 +
 +
# Disable anonymous editing
 +
$wgGroupPermissions['*']['edit'] = false;
 +
 +
# Prevent new user registrations except by sysops
 +
$wgGroupPermissions['*']['createaccount'] = false;
 +
</syntaxhighlight>
 +
 +
<translate><!--T:43--> Depending on what extensions you have installed, you may want to whitelist more pages.</translate>
 +
<translate><!--T:44--> For example if you are using the <tvar name=1>{{ll|Extension:ConfirmAccount}}</tvar> extension, you probably want Special:RequestAccount whitelisted.</translate>
 +
<translate><!--T:45--> 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>
 +
 +
{{anchor|Restrict account creation}}
 +
<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 ===

Latest revision as of 15:39, 1 September 2024

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)

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