Last active
January 10, 2024 01:21
-
-
Save KaspianDev/4f19e03478d8d3f80fa61ec88c50a054 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
echo " _ _ __ __ ______ __ __ _____ ______ _ _ _____ _ ________ _____ " | |
echo "| \ | | /\ | \/ | ____| \/ |/ ____| | ____| | | |/ ____| |/ / ____| __ \ " | |
echo "| \| | / \ | \ / | |__ | \ / | | | |__ | | | | | | ' /| |__ | |__) |" | |
echo "| | / /\ \ | |\/| | __| | |\/| | | | __| | | | | | | < | __| | _ / " | |
echo "| |\ |/ ____ \| | | | |____| | | | |____ | | | |__| | |____| . \| |____| | \ \ " | |
echo "|_| \_/_/ \_\_| |_|______|_| |_|\_____| |_| \____/ \_____|_|\_\______|_| \_\\" | |
echo "Starting to L + Ratio Namemc." | |
iptables -A INPUT -s 51.222.110.150 -j DROP | |
echo "51.222.110.150 Banned" | |
iptables -A INPUT -s 104.27.18.114 -j DROP | |
echo "104.27.18.114 Banned" | |
sudo modprobe ip6table_filter | |
ip6tables -A INPUT -s 2606:4700:20::681b:1272 -j DROP | |
echo "2606:4700:20::681b:1272 Banned" | |
echo "Namemc got fucked, enjoy your day." | |
if ! command -v netfilter-persistent &> /dev/null | |
then | |
echo "Netfilter-persistent is not installed, rules will not be saved." | |
exit | |
else | |
echo "Saving the rules." | |
netfilter-persistent save | |
exit | |
fi | |
# This script is used to block namemc ip's from indexing your server. It has been tested! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment