[ Zeke / Woozie ] bot / IP / referrer blocker https://davidawindham.com/til/docs/computers/woozie

windhamdavid af1ecda4fc update from server logs 3 years ago
README.md af1ecda4fc update from server logs 3 years ago
bad-referrer-words.conf af1ecda4fc update from server logs 3 years ago
blacklist-ips.conf af1ecda4fc update from server logs 3 years ago
blacklist-user-agents.conf 8e98d96118 iQFLBAABCAA1FiEEzdc6C8U0Fd1W9WC36h3SEMrMxF4FAltoT7YXHG1pdGNoZWxs 6 years ago
globalblacklist.conf 716f98a669 upstream V3.2022.05.1398 3 years ago
whitelist-domains.conf 8e98d96118 iQFLBAABCAA1FiEEzdc6C8U0Fd1W9WC36h3SEMrMxF4FAltoT7YXHG1pdGNoZWxs 6 years ago
whitelist-ips.conf 05c819e56e update referrers and ips 3 years ago

README.md

Bad Bot Blocker

upstream - https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker

keep it sync'd with upstream

edit/prune upstream on localhost

git checkout master
git fetch upstream   
git merge upstream/master  
(edit README.md, git add, git commit)
git merge upstream/master
git filter-branch -f --prune-empty --subdirectory-filter Apache_2.4/custom.d master   
gpom #git push origin master   
gpcm #git push code master   


Sync bad-referrer-words.conf - https://github.com/matomo-org/referrer-spam-blacklist/blob/master/spammers.txt
Sync with existing whitelist-ips.conf & blacklist-ips.conf


Sync remote host

cd /etc/apache2/   
git clone https://github.com/windhamdavid/custom.d/   
cd custom.d  
git pull origin/code master
sudo apache2ctl configtest
sudo service apache2 reload

Notes:

re: sync referrer-words:

  • always forget to tap ⌥ to get multiple row carets. ⌘ → to end of line.

2021/03

  • current branch was behind remote. Forgot I had whitelisted Screaming Frog in a previous commit on the remote host. Used -f to overwrite.

2022/02

  • updated to Version: V3.2022.02.1316
  • sync'd referrers and added some custom referrers and IPs.
  • rm screaming 🐸 from globalblacklist so I can use it.
  • since the IP blacklist is not really kept up to day, I'm using IPs gathered from several list @ https://github.com/hslatman/awesome-threat-intelligence

2022/06

  • updated to Version: V3.2022.05.1398
  • added IPs and referrers from GoAccess server analytics
  • easy to check IPs @ https://www.abuseipdb.com