Banning Ips with httaccess, how much resources it eats?

by Haship
2 replies
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?
#banning #eats #httaccess #ips #resources
  • Profile picture of the author RobinInTexas
    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.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[9515557].message }}
  • Profile picture of the author phpg
    If possible it's better do ban IPs in the firewall (such as iptables), before the webserver.
    {{ DiscussionBoard.errors[9517183].message }}

Trending Topics