Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Last active November 2, 2022 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waynegraham/822a5310d54a441250897c145c2091c0 to your computer and use it in GitHub Desktop.
Save waynegraham/822a5310d54a441250897c145c2091c0 to your computer and use it in GitHub Desktop.
Update blocked IPs for StopForumSpam

Stop Forum Spam Update

  • 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
#! /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