I want to use htaccess to block access to the WordPress Admin area, for everyone unless they are inside our building. This not-working htaccess rule can explain it the best:
# Block WordPress Admin from public <Files wp-login.php> order deny,allow deny from all allow from HTTP_CF_CONNECTING_IP 999.999.999.999 </Files>
Note, I’m not looking for page rules at this time, just htaccess. Don’t want to cross that bridge if I don’t have to.
I have tried a few searches on CF community and Google but I can only seem to find solutions that involve 2 out of 3 of topics at once, never all 3. For example, if I wanted to block the entire website, there are plenty of search results showing how HTTP_CF_CONNECTING_IP can save the day. But I can’t find any references to HTTP_CF_CONNECTION_IP that work inside of
What could I do to make this work?