Spam: Difference between revisions

From Wikimedia UK
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$wgApplyIpBlocksToXff = true;
# Set AutoConfirmAge and AutoConfirmCount
# Set AutoConfirmAge and AutoConfirmCount
$wgAutoConfirmAge = 86400; // one day
$wgAutoConfirmAge = 432000; // five days
$wgAutoConfirmCount = 10;
$wgAutoConfirmCount = 20;


# Force people to register before they are allowed to edit
# Force people to register before they are allowed to edit
Line 18: Line 20:


See also:
See also:
* [[:mw:Manual:$wgApplyIpBlocksToXff|Manual:$wgApplyIpBlocksToXff]]
* [[:mw:Manual:Combating vandalism#Restrict editing|Manual:Combating vandalism#Restrict editing]]
* [[:mw:Manual:Combating vandalism#Restrict editing|Manual:Combating vandalism#Restrict editing]]
* [[:mw:Manual:$wgAutoConfirmAge|Manual:$wgAutoConfirmAge]]
* [[:mw:Manual:$wgAutoConfirmAge|Manual:$wgAutoConfirmAge]]

Latest revision as of 16:19, 8 September 2022

Carrying on from this Engine room discussion:

LocalSettings.php (done)

Add the following to LocalSettings.php:

$wgApplyIpBlocksToXff = true;

# Set AutoConfirmAge and AutoConfirmCount
$wgAutoConfirmAge = 432000; // five days
$wgAutoConfirmCount = 20;

# 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: