Forum Moderators: phranque

Message Too Old, No Replies

2173 deny from entries in my httpd.conf

Is this too much?

         

Frank_Rizzo

11:47 am on Jan 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm blocking a handful of countries with deny from nnn.nnn.nnn.nnn!/y in httpd.conf

After just adding Lithuania I find that there are now 2173 lines with deny from.

Is this too much? Can Apache handle it?

Maybe Apache eats this stuff for breakfast and there is very little performance hit so don't worry about it?

At what point will there be too much time spent on checking IP's and not enough time serving pages?

Is there a parameter which can be tuned to optimize the deny routines?

[edited by: Frank_Rizzo at 11:58 am (utc) on Jan. 23, 2007]

wilderness

8:34 pm on Jan 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My current htaccess holds 1,615 lines.

Your loading the lines up httpd.conf when the server reboots, where as mine (hosted site) are loaded indivually.

My pages are primarily simple with extensive text and no bells and whistles.
I've repaetedly inquired to my host is the large file causes any server delay and have always been replied "NO".
Thus I stopped inquirying.

BTW, your likely able to condesne the lines by 30% or more with some thought.