howto ban an ip address

From WebHostingNeeds.com
Revision as of 13:21, 24 January 2008 by Admin (talk | contribs) (New page: You can ban IP address with firewall. Most linux servers have iptables installed by default. To block an IP access your server, use following command iptables -A INPUT -s <IP> -j DROP ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You can ban IP address with firewall.

Most linux servers have iptables installed by default.

To block an IP access your server, use following command

iptables -A INPUT -s <IP> -j DROP

If you have software firewall like APF or CSF, use

apf -d <IP>
csf -d <IP>