If you are using Cloudflare as first line of defense, and want to restrict by IP in the Apache webserver behind. Add this to your .htaccess:

SetEnvIF X-Forwarded-For "1.1.1.1" AllowIP
 
<RequireAny>
Require env AllowIP
</RequireAny>

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply