I am attempting to lock down our admin area by IP via .htaccess with something like this:
order deny,allow
deny from all
allow from 123.456.78.9
<Files ~ ".(xml|css|jpe?g|png|gif|js)$">
Allow from all
</Files>
I have also renamed (or re-routed) our admin directory to another name; in this example let's call it "abc".
So because there is no real "/abc/" directory I created one and placed this file inside it; however when I did that going to "/abc/" no longer redirected to "/abc/login/"; I had to manually go there.
Is there a way I can protect via IP without affecting anything else?
Question
gutterboy
I am attempting to lock down our admin area by IP via .htaccess with something like this:
I have also renamed (or re-routed) our admin directory to another name; in this example let's call it "abc".
So because there is no real "/abc/" directory I created one and placed this file inside it; however when I did that going to "/abc/" no longer redirected to "/abc/login/"; I had to manually go there.
Is there a way I can protect via IP without affecting anything else?
Thanks!
17 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.