This Script add UFW Deny Rules for IP's and IP-Subnets from different Security and IoT Scanning Services that may scan your server. You must install ufw firewall for your distribution. Tested on Ubuntu and Debian.
Some scanners use cloud services such as AWS, Google Cloud, Digital Ocean etc. If you block these, it can lead to problems with installed software that also uses them. So you need to analyze and whitelist specific IP's if you encounter problems.
- Censys.io
- Shodan.io
- zoomeye.hk
- criminalip.io
- recyber.net
- alphastrike.io
- shadowserver.org
- driftnet.io
- cyberresilience.io
- internet-census.org
- scanopticon.com
- leakix.net
- onyphe.io
chmod +x block_ips.sh
./block_ips.sh
- Profit??