Over a million developers have joined DZone.

Ban IPs From A Server

DZone's Guide to

Ban IPs From A Server

Free Resource
Use the code below to permanently ban an IP address from accessing your server.

iptables -A INPUT -s ip.address -j DROP

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}