امتداد:RegexBlock

From mediawiki.org
This page is a translated version of the page Extension:RegexBlock and the translation is 100% complete.
الدليل المرجعي لامتدادات ميدياويكي
RegexBlock
حالة الإصدار مستقر
تنفيذ صلاحيات المستخدم , صفحة خاصة
بيان يضيف صفحة خاصة جديدة تستخدم في منع أسماء المستخدمين وعناوين الآيبي التي يستخدمونها واستعراضهم وإلغاء منعهم حسب الاسم الأول، مستخدما تعابير نمطية
المؤلف/المؤلفون
آخر إصدار 1.7 (2019-05-08)
MediaWiki 1.39+
تغييرات قاعدة البيانات نعم
ترخيص رخصة جنو العمومية 2.0 أو ما بعدها
التنزيل
  • $wgRegexBlockDatabase
  • $wgContactLink

  • regexblock
  • regexblock-exempt
تنزيلات ربع سنوية 2 (Ranked 142nd)
استخدام مواقع الويكي العمومية 1,108 (Ranked 254th)
ترجم الامتداد RegexBlock لو كان متوفرا على translatewiki.net

إن امتداد RegexBlock هو امتداد يضيف صفحة خاصة في الواجهة تستخدم في منع أسماء المستخدمين وعناوين الآيبي التي يستخدمونها وكذا استعراض أسماء المستخدمين وإلغاء منعها باستخدام تعابير نمطية. It was originally written by Bartek Łapiński for فاندوم .

التثبيت

This extension works best when used along with setting shared database and memcached .
  • نزّل الملف/الملفات وضعها في دليل يحمل اسم ‎RegexBlock داخل مجلد ‎extensions/‎ لديك.
    يجب على مطوري البرمجيات والمساهمين بالكود البرمجي تثبيت الامتداد من غت بدلا من ذلك، مستخدمين:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RegexBlock
  • أضف الكود التالي في الجزء الأسفل من ملف LocalSettings.php :
    wfLoadExtension( 'RegexBlock' );
    
  • شغل نص التحديث البرمجي الذي سوف ينشئ تلقائيا جداول قاعدة البيانات الضرورية التي يحتاج إليها الامتداد.
  • 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 تم التنفيذ – اذهب إلى Special:Version على موقع الويكي لديك كي تتحقق من أن الامتداد قد ثبت بنجاح.

حقوق المستخدمين

اسم حق المستخدم المجموعة التي تُمنح هذا الحق تلقائيًا بيان
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.

الاستخدام

  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"

المتغيرات

اسم متغير الضبط القيمة الافتراضية بيان
$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.

أمثلة

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

انظر أيضا

  • Extension:SpamRegex — امتداد مشابه يستخدم في منع التعبيرات الموجودة في محتوى الصفحة (وخلافه) مستخدمًا تعابير نمطية
  • Extension:TitleBlacklist
  • BulkBlock Extension — an extension that allows administrators to easily block multiple users at once on a MediaWiki website.