Archive for the ‘Linux’ Category

Linux: Quickly block an IP address from HTTP/HTTPS access using IPTables

/sbin/iptables -A INPUT -p tcp -s <source IP: 4.2.2.2> –dport 80 -j DROP
/sbin/iptables -A INPUT -p tcp -s <source IP: 4.2.2.2> –dport 443 -j DROP

Leave a Comment

Linux: The power of sudo command

This picture explains itself…

Comments (1)