Skip to content

Commit e6673ae

Browse files
feat: enable use o X-Forwarded-For header
1 parent da7cc56 commit e6673ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mediawiki/LocalSettings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
# DNS-based real-time spam blacklist
381381
$wgEnableDnsBlacklist = true;
382382
$wgDnsBlacklistUrls = array('sbl.spamhaus.org.');
383+
$wgUseRealIPs = true; # Use the X-Forwarded-For header to get the real ip address of the user for spam detection
383384

384385
wfLoadExtension('SimpleBatchUpload');
385386

0 commit comments

Comments
 (0)