iptables -A INPUT -s IP-ADDRESS -j DROP
Replace IP-ADDRESS with actual IP address. For example if you wish to block ip address 65.55.44.100 for whatever reason then type command as follows:
iptables -A INPUT -s 65.55.44.100 -j DROP
If you have IP tables firewall script, add above rule to your script.
If you just want to block access to one port from an ip 65.55.44.100 to port 25 then type command:
iptables -A INPUT -s 65.55.44.100 -p tcp --destination-port 25 -j DROP
The above rule will drop all packets coming from IP 65.55.44.100 to port mail server port 25.
[Fri Apr 03 20:31:30 2009] [error] [client 71.205.176.113] client denied by server configuration: /home/yeo/public_html/blog
71.205.176.113 – - [03/Apr/2009:20:31:30 +0800] “POST /blog/alton4533734/wp-signup.php HTTP/1.1″ 403 233 “-” “curl/7.18.2 (i386-pc-win32) libcurl/7.18.2 zlib/1.2.3″
[Fri Apr 03 20:31:31 2009] [error] [client 71.205.176.113] client denied by server configuration: /home/yeo/public_html/blog
71.205.176.113 – - [03/Apr/2009:20:31:31 +0800] “GET /blog/calandra8457410/wp-signup.php HTTP/1.1″ 403 236 “-” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)”
[Fri Apr 03 20:31:31 2009] [error] [client 71.205.176.113] client denied by server configuration: /home/yeo/public_html/blog
71.205.176.113 – - [03/Apr/2009:20:31:31 +0800] “GET /blog/alton4533734/wp-signup.php HTTP/1.1″ 403 233 “-” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)”