Page 1 of 1

How to block an IP address in dedicated server?

Posted: Mon Jan 04, 2016 7:33 pm
by Madison
Hello,

one IP spam my server ,please help me to block this ip in my server thanks.

Thanks.

Re: How to block an IP address in dedicated server?

Posted: Sat Jan 30, 2016 6:52 pm
by Hernandez
Execute the following command in order to block an IP address from accessing your server:

iptables -I INPUT -s IPaddress -j DROP

Simply replace IP address with the IP you want to block.