htaccess blocking everything, deny all blocking allowed ips

Here’s a quick note to let you know that things have changed with respect to how htaccess allows ips and denies on the Apache platform.

As you’re looking at this you will probably see the following in your htaccess file (if you’re using it for ip blocking):

order allow,deny

allow from (ip address here)

deny all

If you’re experiencing issues with having the htaccess blocking everything and everyone then here’s your reason why.

That Syntax has been deprecated for awhile and was removed by a recent Cpanel update for Apache.
You can read more about that here:
https://httpd.apache.org/docs/2.4/howto/access.html

What is the right syntax now?

 

<RequireAny>

Require ip address

Require ip  address

</RequireAny>