Erweiterung:RegexBlock
Appearance
RegexBlock Freigabestatus: stabil |
|
---|---|
Einbindung | Benutzerrechte , Spezialseite |
Beschreibung | Adds a new special page for blocking, viewing and unblocking user names and IP addresses by given name, using regular expressions |
Autor(en) |
|
Letzte Version | 1.7 (2019-05-08) |
MediaWiki | 1.39+ |
Datenbankänderungen | Ja |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | |
|
|
|
|
Quarterly downloads | 5 (Ranked 126th) |
Public wikis using | 1,108 (Ranked 254th) |
Übersetze die RegexBlock-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
RegexBlock is an extension that adds special page with the interface for blocking, viewing and unblocking user names and IP addresses using regular expressions.
It was originally written by Bartek Łapiński for Fandom .
Installation
This extension works best when used along with setting shared database and memcached .
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
RegexBlock
im Ordnerextensions/
ablegen.
Entwickler und Code-Beitragende sollten stattdessen die Erweiterung von Git installieren, mit:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RegexBlock - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'RegexBlock' );
- Führe das Aktualisierungsskript aus, welches automatisch die notwendigen Datenbanktabellen erstellt, die diese Erweiterung braucht.
- Ensure that the
regexblock
user right is given to a group that exists; by default this user right is given to thestaff
user group (which does not exist in a default MediaWiki installation). For example, this could be given to thesysop
group:
$wgGroupPermissions['sysop']['regexblock'] = true;
- Erledigt – Navigiere zu Special:Version in deinem Wiki, um zu überprüfen, ob die Erweiterung erfolgreich installiert wurde.
Benutzerrechte
User right name | Group which is given this right by default | Beschreibung |
---|---|---|
regexblock
|
staff | User right required to view and thus use Special:RegexBlock for managing blocks. |
regexblock-exempt
|
staff | Users who have this right are exempt from RegexBlock blocks. |
Verwendung
- Go to
Special:RegexBlock
- Enter the IP address or the username to be blocked to the "IP address or username" field
- Enter an optional reason. If no reason is provided by the blocker, a generic reason will be shown to the blocked user.
- Select expiry time
- Select if you want to block the creation of new accounts and if the match needs to be exact or regex one
- Press "Block this user"
Parameter
Name der Konfigurationsvariablen | Standardwert | Beschreibung |
---|---|---|
$wgContactLink
|
Special:Contact
|
Displayed to regexblocked users in the regexblock-reason-* interface messages. You might want to customize it if the ContactPage extension isn't installed on your wiki. |
$wgRegexBlockDatabase
|
false
|
Set this to the database to use for blockedby and stats_blockedby tables. If you want to use the local database, set this to false . Otherwise you could set this to $wgSharedDB , for example.
|
Beispiele
To block all users except local ones (192.168.xx.xx): \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?([0]|[2-9])[0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
Siehe auch
- Extension:SpamRegex — a similar extension for blocking expressions in page content (etc.) using regular expressions
- Extension:TitleBlacklist
- BulkBlock Extension — an extension that allows administrators to easily block multiple users at once on a MediaWiki website.
Categories:
- Stable extensions/de
- User rights extensions/de
- Special page extensions/de
- GPL licensed extensions/de
- Extensions in Wikimedia version control/de
- Extensions which add rights/de
- ContributionsToolLinks extensions/de
- GetUserBlock extensions/de
- LoadExtensionSchemaUpdates extensions/de
- All extensions/de
- Extensions by Fandom/de
- Extensions by ShoutWiki/de