MediaWiki/Sicherheit: Unterschied zwischen den Versionen

Aus Foxwiki
Leere Seite erstellt
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
; Mediawiki absichern


Hier eine kleine Anleitung wie man den Anonymous Benutzern, also den nicht eingeloggten Mediawiki Benutzern so gut es geht die Rechte im Wiki entzieht.
* Lockdown Extension
; LocalSettings.conf
# E-Mail adress valididation
$wgEmailConfirmToEdit = true;
# Prevent new user registrations except by sysops
$wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
$wgGroupPermissions['*']['createaccount'] = false;
# Disable anonymous editing and talk
$wgGroupPermissions['*']['edit'] = false;
$wgDisableAnonTalk = true;
# Anonymous users can't create pages
$wgGroupPermissions['*']['createpage'] = false;
$wgShowIPinHeader = false;
# Enable Lockdown Extension
wfLoadExtension( 'Lockdown' );
$wgSpecialPageLockdown['Version'] = array('user', 'bureaucrat', 'sysop');
$wgSpecialPageLockdown['Export'] = array('user', 'bureaucrat', 'sysop');
$wgSpecialPageLockdown['Listfiles'] = array('user', 'bureaucrat', 'sysop');
$wgSpecialPageLockdown['Listusers'] = array('user', 'bureaucrat', 'sysop');
$wgSpecialPageLockdown['Statistics'] = array('user', 'bureaucrat', 'sysop');
$wgSpecialPageLockdown['Booksources'] = array('user', 'bureaucrat', 'sysop');
$wgSpecialPageLockdown['Protectedpages'] = array('user', 'bureaucrat', 'sysop');
$wgActionLockdown['history'] = array('user', 'bureaucrat', 'sysop');
$wgActionLockdown['edit'] = array('user', 'bureaucrat', 'sysop');

Version vom 31. Mai 2024, 11:02 Uhr

Mediawiki absichern

Hier eine kleine Anleitung wie man den Anonymous Benutzern, also den nicht eingeloggten Mediawiki Benutzern so gut es geht die Rechte im Wiki entzieht.

  • Lockdown Extension
LocalSettings.conf
  1. E-Mail adress valididation

$wgEmailConfirmToEdit = true;

  1. Prevent new user registrations except by sysops

$wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 ); $wgGroupPermissions['*']['createaccount'] = false;

  1. Disable anonymous editing and talk

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

  1. Anonymous users can't create pages

$wgGroupPermissions['*']['createpage'] = false; $wgShowIPinHeader = false;

  1. Enable Lockdown Extension

wfLoadExtension( 'Lockdown' ); $wgSpecialPageLockdown['Version'] = array('user', 'bureaucrat', 'sysop'); $wgSpecialPageLockdown['Export'] = array('user', 'bureaucrat', 'sysop'); $wgSpecialPageLockdown['Listfiles'] = array('user', 'bureaucrat', 'sysop'); $wgSpecialPageLockdown['Listusers'] = array('user', 'bureaucrat', 'sysop'); $wgSpecialPageLockdown['Statistics'] = array('user', 'bureaucrat', 'sysop'); $wgSpecialPageLockdown['Booksources'] = array('user', 'bureaucrat', 'sysop'); $wgSpecialPageLockdown['Protectedpages'] = array('user', 'bureaucrat', 'sysop'); $wgActionLockdown['history'] = array('user', 'bureaucrat', 'sysop'); $wgActionLockdown['edit'] = array('user', 'bureaucrat', 'sysop');