This blog site is not meant to be any information that is distributed to the general public. It is to serve as shared documentation between the DNSTC developers; however, if you find something useful and would like to use it, go right ahead.

Monday, February 6, 2012

Blocking IP addresses from the server

deniedI really got tired of dealing with spammers so I just started blocking IP address from these people who just want to submit garbage to our forms on the websites.  Here is how I block and IP address.

1. Log into the root account.

2. Enter the code below at the command prompt:

iptables -A INPUT -s x.x.x.x -j DROP



To list what is in the iptables:


iptables -L




That is pretty much it, and they should be shut-down from the server completely!

No comments:

Post a Comment