I have been experincing massive requests from certain ips to my apache http server. Although I Deny from xxxx so that xxx gets a 403 forbidden response. It still consumes my server's resource. Is there a way to further block the client from these ips?
migrated from stackoverflow.com Apr 6 '11 at 14:47
This question came from our site for professional and enthusiast programmers.
If you are using Windows, you can setup custom inbound rules in windows firewall using the GUI (start, run, wf.msc)
If you are using Linux, use IPTABLES:
Drop traffic from 192.x.x.x on port 80 only:
Drop all traffic from 18.104.22.168 on any port:
If you post what distribution you are using (providing its linux ofcourse) we can point you to some basic tutorials for setting up IPTABLES.
EDIT 1: Heres a guide for Ubuntu: https://help.ubuntu.com/community/IptablesHowTo