I am attempting to lock down our admin area by IP via .htaccess with something like this:
order deny,allow
deny from all
allow from123.456.78.9<Files~".(xml|css|jpe?g|png|gif|js)$">Allowfrom 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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now