امتداد:مكافحة_النشر_المزعج

This page is a translated version of the page Extension:Antispam and the translation is 40% complete.
الدليل المرجعي لامتدادات ميدياويكي
Anti-spam by CleanTalk
حالة الإصدار مستقر
تنفيذ نشاط المستخدم , تصرف خاصة بالصفحة
بيان امتداد خاص بالأجهزة العميلة مخصص لخدمة مكافحة النشر المزعج السحابية التي تحمل اسم CleanTalk.org.
المؤلف/المؤلفون Denis Shagimuratov
آخر إصدار 2.4 (2023-07-28)
MediaWiki 1.29+
PHP PHP 5.3+
تغييرات قاعدة البيانات نعم
ترخيص رخصة جنو العمومية 2.0 أو ما بعدها
التنزيل

  • $wgCTAccessKey
  • $wgCTNewEditsOnly

  • cleantalk-bypass

إن امتداد Anti-spam هو تطبيق يستخدم على جهاز عميل مخصص لخدمة مكافحة النشر المزعج السحابية ذات الطابع التجاري التي تحمل اسم cleantalk.org.

خدمة مكافحة النشر المزعج

تقدم خدمة السحابة الحاسوبية CleanTalk حماية آلية وغير مرئية من النشر المزعج على المواقع الشبكية. تحلل الخدمة سلوك المستخدم وتقيّم المتغيرات الموجودة في نموذج كامل.

حينما تنصّب على موقعك الشبكي، ستتولى وحدة مكافحة النشر المزعج البرمجية تسجيل متغيرات سلوك زائر أو بوت نشر مزعج. يجري تقييم هذه المتغيرات وتتولى الخدمة اتخاذ قرار – إما نشر رسالة الزائر أو وسمها بوسم نشر مزعج وبالتالي رفضها. استنادًا إلى أعمال التحقق هذه، تكوّن الخدمة قائمة خاصة بها تحتوي على عناوين بريد إلكتروني تستخدمها بوتات النشر المزعج. وخلاف ذلك، يجري التحقق أيضًا من أعمال تسجيل الزوار. لا تضيف الخدمة عناوين البريد الإلكتروني إلى القائمة السوداء العمومية فحسب، بل أنها تضيف عناوين الآي بي ونطاقات المواقع الشبكية التي يجري الترويج إليها باستخدام النشر المزعج.

سمة الجدار الناري المكافح للنشر المزعج

يسمح هذا الخيار بمنع بوتات النشر المزعج قبل وصولها إلى محتوى برمجيات ميدياويكي. تجمع خدمة CleanTalk بيانات عن نشاط بوتات النشر المزعج على المواقع الشبكية وعناوين الآي بي لأغلب بوتات النشر المزعج النشطة وتضاف إلى قاعدة بيانات الجدار الناري للنشر المزعج. تعترض هذه الخدمة أية طلبات إتش تي تي بي (سواء كانت طلبات نشر «POST» أو طلبات جلب «GET») مرفوعة إلى موقع شبكي وعنوان الآي بي الذي تحتوي عليه. لو كان عنوان الآي بي موجود في القائمة السوداء لخدمة CleanTalk لأغلب عناوين الآي بي الأكثر نشاطًا في النشر المزعج، سوف تحصل على صفحة خاصة، ولو كان الزائر حقيقيًا سيوجه الزائر إلى الموقع الشبكي. هذا الأمر واضح تمامًا للزوار. تقيّد نتائج الجدار الناري للنشر المزعج في سجل وهي متاحة في لوحة التحكم لديك.

خدمة التحقق من صحة عنوان البريد الإلكتروني المباشرة

To validate that users sign up with their real email address, the CleanTalk server will perform email account existence checks using SMTP response.

القائمة السوداء أو البيضاء الخصوصية

Automatically blocks comments and registrations from your private black IP/email address list. This option helps to strengthen the protection from manual spam or block unwanted comments from users. You can add not only the certain IP addresses but also a separate subnet to your personal blacklist. The extension allows blocking or whitelisting emails for registration using wildcards, for example, "*@mail.com" will block/allow every address ending on @mail.com.

منع المستخدمين حسب الدولة

The external service can be used to automatically block comments and registrations from specific countries.

قائمة وقف حسب الكلمات

Comments that contain specific words can be forbidden.

لقطات من الشاشة من cleantalk

التثبيت

  • تنزيل وضع الملف/الملفات في دليل يحمل اسم ‎Antispam في مجلد ‎extensions/‎ لديك.
  • أضف الكود التالي في الجزء الأسفل من ملف LocalSettings.php :
    require_once "$IP/extensions/Antispam/Antispam.php";
    
  •   تم التنفيذ – اذهب إلى Special:Version على موقع الويكي لديك كي تتحقق من أن الامتداد قد ثبت بنجاح.

متغيرات الضبط

To run extension

  • Get Access key
http://cleantalk.org/register?platform=mediawiki

Place the Access key in the LocalSettings.php with the variable $wgCTAccessKey.

  ملحوظة: you need to put it after loading the extension using require_once or wfLoadExtension().

  • Set as you wish true or false the parameter $wgCTNewEditsOnly.

أسئلة متكررة

  • Should I change anything in the extension's settings or in my CleanTalk Control Panel when I switch my website from HTTP to HTTPS or vice versa?
    • No, the extension will work regardless of the protocol. 
  • After installation, on creation of a test user, I get error: Fatal exception of type "Wikimedia\Rdbms\DBQueryError". How to fix?
    • temporarily add:
      require_once "$IP/extensions/Antispam/Antispam.php";
      into LocalSettings.php, verify that the extension was loaded on the version page, then replace with:
      wfLoadExtension( 'Antispam' );
    • Don't set the key in the extensions/Antispam/Antispam.php file, but in LocalSettings.php file as variable $wgCTAccessKey below the load instruction.
  • This extension is dependent on cleantalk.org, a commercial paysite. Are there any free options or alternatives?
    • The Antispam extension is specific to this one provider, which is non-free. There are hundreds of other real-time blocklists (RBLs) or DNS blocklists (DNSBLs), both paid and free; most target spam e-mail but a few target forum or blog comment spam. Extension:StopForumSpam uses stopforumspam.com to prevent comment spam, for instance. Another option is to download IP deny lists from any of a number of sources, and import them into MediaWiki using the maintenance/updateDenyList.php script.
  • But what about false positives? Is there any way to prevent the extension from submitting the username, email address and IP address of my legit users only to have them appear on cleantalk.org's public blocklists?
    • While the number of false positives is relatively low, this is a problematic issue. It's best to mitigate this risk by only invoking Antispam on new account creation and on new page creation by new or anonymous users.
      • Implement autoconfirmation and set $wgAutoConfirmAge to something reasonable. Give the 'cleantalk-bypass' permission to the bot, sysop and autoconfirmed groups by by setting {{ll|Manual:$wgGroupPermissions|$wgGroupPermissions]]['autoconfirmed']['cleantalk-bypass'] = true; and making the same change for other desired groups in LocalSettings.php .
      • Limit the extension to new page creation by setting $wgCTNewEditsOnly = true; in LocalSettings.php
      • The cleantalk.org web interface does provide a list of who and what has been blocked by the filter. It is possible to report false-positive or false-negative results there; this doesn't reinstate a wrongly-blocked edit or remove a wrongly-blocked IP from the Cleantalk lists, but it will temporarily whitelist the user on your own site.
  • I have multiple subprojects (such as en.example.wiki, fr.example.wiki, pt.example.wiki) for different topics or different languages. Will this extension work with this structure, or do I need to redesign the site to user www.example.wiki/en/PageName www.example.wiki/es/PageName and the like?
    • The extension will work regardless of your URL structure. The only limitation is that the Cleantalk server will remove the original domain and subdomain, replacing them with whatever domain name is tied to the ID specified in $wgCTAccessKey. This only affects the displayed blocklogs on the Cleantalk website; the extension will still work. Another option is to purchase multiple keys (one for each language subproject) but this does cost extra.