Spam: Difference between revisions
Jump to navigation
Jump to search
TheresNoTime (talk | contribs) m (Protected "Spam" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
TheresNoTime (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
== LocalSettings.php == | == LocalSettings.php == | ||
Add the following to [[:mw:LocalSettings|LocalSettings.php]]: | Add the following to [[:mw:LocalSettings|LocalSettings.php]]: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
# Set AutoConfirmAge and AutoConfirmCount | |||
$wgAutoConfirmAge = 86400; // one day | |||
$wgAutoConfirmCount = 10; | |||
# Force people to register before they are allowed to edit | # Force people to register before they are allowed to edit | ||
$wgGroupPermissions['*']['edit'] = false; | $wgGroupPermissions['*']['edit'] = false; | ||
| Line 14: | Line 16: | ||
$wgGroupPermissions['*']['createaccount'] = false; // temporary | $wgGroupPermissions['*']['createaccount'] = false; // temporary | ||
</syntaxhighlight> | </syntaxhighlight> | ||
See also: | |||
* [[:mw:Manual:Combating vandalism#Restrict editing|Manual:Combating vandalism#Restrict editing]] | |||
* [[:mw:Manual:$wgAutoConfirmAge|Manual:$wgAutoConfirmAge]] | |||
* [[:mw:Manual:$wgAutoConfirmCount|Manual:$wgAutoConfirmCount]] | |||
== Extensions == | == Extensions == | ||
Revision as of 18:10, 15 August 2022
Carrying on from this Engine room discussion:
LocalSettings.php
Add the following to LocalSettings.php:
# Set AutoConfirmAge and AutoConfirmCount
$wgAutoConfirmAge = 86400; // one day
$wgAutoConfirmCount = 10;
# Force people to register before they are allowed to edit
$wgGroupPermissions['*']['edit'] = false;
$wgShowIPinHeader = false;
# Prevent account creation
$wgGroupPermissions['*']['createaccount'] = false; // temporary
See also:
Extensions
From: mw:Manual:Combating spam
We should then install/enable:
- Extension:SpamBlacklist — no configuration required
- Extension:ConfirmEdit — some configuration required
- Extension:StopForumSpam — some configuration required
- Extension:AbuseFilter — configuration & filter setup required