Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have read how to protect admin folder with .htaccess and .htpasswd file but in PyroCMS admin login (ex: example.com/admin) just only routing system (no admin folder yet).

So, how can I double protect my admin access?

share|improve this question
    
I can't wrap my head around what you're trying to accomplish. Can you elaborate on your question? –  user555 May 22 '13 at 13:10
add comment

2 Answers

up vote 0 down vote accepted

The reason your not seeing admin directory is because the URL's are generated using the SQL/CMS and physical paths do not actually exist. You can however make a folder called admin and then stick the htaccess file into to there and it should work without problems.

share|improve this answer
add comment

You can limit the access to the admin with the htaccess to your IP, however, if you have a dynamic IP you might lock yourself out.

To do this place a .htaccess in your admin folder and put the following lines in

order deny,allow
allow from 222.222.222.222 (replace with your IP address)
deny from all
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.