- Add a directory (e.g.
mkdir /var/www/blocked_ips
) - Run the bash script to download the suggested
listed_ip_30_all
(see https://www.mediawiki.org/wiki/Extension:StopForumSpam#IP_blocking) - Make sure
LocalSettings.php
points to the extracted file - Run
/var/www/mediawiki/extensions/StopForumSpam/maintenance/updateDenyList.php
to load into APCu cache
Last active
November 2, 2022 20:45
-
-
Save waynegraham/822a5310d54a441250897c145c2091c0 to your computer and use it in GitHub Desktop.
Update blocked IPs for StopForumSpam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
sudo wget https://www.stopforumspam.com/downloads/listed_ip_30_ipv46_all.gz | |
sudo gunzip listed_ip_30_ipv46_all.gz | |
sudo chown www-data:www-data listed_ip_30_ipv46_all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment