Hi, I am a potential new customer. The host I am currently with (Inmotion) gave me an ultimatum to reduce the size of my .htaccess file in three days or else my account gets disabled. This was after about 1 year of using it as described below:
I had been using a large all-encompassing .htaccess Deny list from this website:
I am doing that because I am interested in preventing any other countries from using my information, there is just no reason for it. It is local to my town. Using the list they generate to allow only the US and Canada (including Canada due to shared ISP networks) has some holes in it which we discovered, thereby causing some unintended blocking for the target audience. Therefore my best choice is to block every country EXCEPT the US and Canada. At least any holes in that list has not resulted in target audience getting blocked (thus so far).
My big question is to Dreamhost is this: With SHARED HOSTING, is there ANY limit to the size of the .htaccess file. In particular, the file in my root directory was ending up with about 80,000 entries after copying and pasting the list generated by this website. It was about a 2.1 megabyte file with everything included. I’d prefer to continue to use this method of blocking because it really works, and I find it super-easy to download and update my site with.
Also, if that is not feasible, I would also be willing to use the free services from Cloudflare in conjunction with a Dreamhost account. In particular I would be interested to know if I could use mod_couldflare in conjunction with a shared hosting account so that I could still use .htaccess to block specific IP address ranges if need be. (Inmotion requires a dedicated VPS or other non-basic service to use mod_cloudflare)
Thanks to all for any info