Extension:RegexBlock/sv

Category:GPL licensed extensions/sv
Manual för MediaWikitillägg
RegexBlock
Utgivningsstatus: stabilCategory:Stable extensions/sv
Genomförande Användarrättigheter Category:User rights extensions/sv, Speciasida Category:Special page extensions/sv
Beskrivning Adds a new special page for blocking, viewing and unblocking user names and IP addresses by given name, using regular expressions
Författare
Senaste versionen 1.7 (2019-05-08)
MediaWiki 1.43+Category:Extensions with manual MediaWiki version
Förändringar i databasen Ja
Licenser GNU General Public License 2.0 eller senare
Ladda ner Category:Extensions in Wikimedia version control/sv
  • $wgRegexBlockDatabase
  • $wgContactLink
Kvartalsnedladdningar 3 (Ranked 109th)
Offentliga wikier som använder 1,108 (Ranked 254th)
Översätt tillägget RegexBlock om det finns tillgängligt på translatewiki.net
Ärenden Öppna ärenden · Rapportera en bugg
Category:All extensions/sv

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 .
  • Ladda ner och placera filen/filerna i en katalog som heter RegexBlock i din extensions/-mapp.
    Utvecklare och personer som bidrar med kod borde istället installera tillägget från Git, med:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RegexBlock
  • Lägg till följande kod längst ner i din LocalSettings.php -fil:
    wfLoadExtension( 'RegexBlock' );
    
  • Kör uppdateringsskriptetsom automatiskt kommer skapa de nödvändiga databastabellerna som tillägget behöver.
  • Ensure that the regexblock user right is given to a group that exists; by default this user right is given to the staff user group (which does not exist in a default MediaWiki installation). For example, this could be given to the sysop group:
$wgGroupPermissions['sysop']['regexblock'] = true;
  • Yes Klart – Ta dig till Special:Version på din wiki för att bekräfta att tillägget har installerats ordentligt.

Användarrättigheter

User right name Group which is given this right by default Description
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.

Användning

  1. Go to Special:RegexBlock
  2. Enter the IP address or the username to be blocked to the "IP address or username" field
  3. Enter an optional reason. If no reason is provided by the blocker, a generic reason will be shown to the blocked user.
  4. Select expiry time
  5. Select if you want to block the creation of new accounts and if the match needs to be exact or regex one
  6. Press "Block this user"

Parametrar

Configuration variable name Default value Description
$wgContactLink Special:Contact Displayed to regexblocked users in the regexblock-reason-* interface messages. You might want to customize it if 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.

Exempel

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

Se även

Category:Extensions by Fandom/sv Category:Extensions by ShoutWiki/sv
Category:All extensions/sv Category:ContributionsToolLinks extensions/sv Category:Extensions by Fandom/sv Category:Extensions by ShoutWiki/sv Category:Extensions in Wikimedia version control/sv Category:Extensions which add rights/sv Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/sv Category:GetUserBlock extensions/sv Category:LoadExtensionSchemaUpdates extensions/sv Category:Special page extensions/sv Category:Stable extensions/sv Category:User rights extensions/sv