How to block an IP address in dedicated server?

Description of your first forum.
Post Reply
Madison
Posts: 7
Joined: Mon Jan 19, 2015 2:54 pm

How to block an IP address in dedicated server?

Post by Madison » Mon Jan 04, 2016 7:33 pm

Hello,

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

Thanks.

Hernandez
Posts: 5
Joined: Wed Jan 21, 2015 2:30 pm

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

Post by Hernandez » Sat Jan 30, 2016 6:52 pm

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.

Post Reply