Credit to blackadder
Tired of all those dynamic IP's from certain countries who cant take no for an answer & they have nothing to offer except being a pain in the butt trying to access your server once they know its location???
Well I had to develop a script to deal with this nonsense which blocks IP's by country fed from ICAN database
Unzip folder upload the script to your root directory
chmod +x block.sh
to start ./block.sh
This script blocks Morrocco, Tunisia & Algeria. You can edit the script by getting the country abbreviations from:
Remember when you reboot the server the rules are gone so do not forget to start the script after it reboots Or
Open /etc/rc.local & place the following line in there
/root/block.sh
Enjoy
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks