Spamhaus daily bad IP autoblocker script
curl -s https://www.spamhaus.org/drop/drop.txt >drop.txt
cut -d' ' -f 1 drop.txt >drop2.txt
mv drop2.txt drop.txt
grep -v '^{;}' drop.txt >drop2.txt
echo "#!/bin/sh" >script
cat drop3.txt | while read line
do
# $line="$line{var ;*}"
echo iptables -A INPUT -s $line -j DROP >>script
echo iptables -A OUTPUT -s $line -j DROP >>script
done
curl -s https://www.spamhaus.org/drop/edrop.txt >drop.txt
cut -d' ' -f 1 drop.txt >drop2.txt
mv drop2.txt drop.txt
grep -v '^{;}' drop.txt >drop2.txt
echo "#!/bin/sh" >script
cat drop3.txt | while read line
do
# $line="$line{var ;*}"
echo iptables -A INPUT -s $line -j DROP >>script
echo iptables -A OUTPUT -s $line -j DROP >>script
done
chmod 777 script
sh script
We are 100% funded for October.
Thanks to everyone who helped out. 🥰
Xephula monthly operating expenses for 2024 - Server: $143/month - Backup Software: $6/month - Object Storage: $6/month - SMTP Service: $10/month - Stripe Processing Fees: ~$10/month - Total: $175/month
- Art
- Causes
- Crafts
- Crime
- Dance
- Drinks
- Film
- Finance
- Fitness
- Food
- Jeux
- Gardening
- Health
- Domicile
- Literature
- Music
- Networking
- Paranormal
- Autre
- Politics
- Stories
- News
- Party
- Science
- Religion
- Shopping
- Sports
- SyFy
- Politically Incorrect
- Philosophy
- Theater
- Technology
- Wellness