PDA

View Full Version : htaccess ip limitations



zpb0103
14 Jan 2011, 12:19 PM
Is there a limit on how many IP denies I can put in an .htaccess file? If there is no limit, would there be any noticeable difference in page loading times if there were 200-300 IPs being blocked?

Thanks!

akliz-larry
01 Feb 2011, 08:22 PM
There should be no limit. However, Apache, rereads the .htaccess file each time the directory is accessed, which may impact your website's performance. If your host allows, I'd recommend placing the IP ban list into the server configuration so that Apache doesn't have to reload and reprocess the list for every request.