Banning Ips with httaccess, how much resources it eats?

by 2 replies
3
I know that if you have a very big list of banned IPs in your httaccess file, it can eat a lot of resources.

Does it make any noticeable difference if I have less than 500 ips listed there? If I'd have let's say 5000ips listed there, would it eat a lot of resources?
#programming #banning #eats #httaccess #ips #resources
  • You're probably not going to hurt it much. I personally combine IPs and ban blocks rather than individual IPs. Also I use a redirect rather than DENY FROM which seems to be the popular method. The redirect requires a bit less work for Apache.
  • If possible it's better do ban IPs in the firewall (such as iptables), before the webserver.

Next Topics on Trending Feed