Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I use the url http://example.org/cpanel to log in.

This is accessible to anyone which seems like a bad idea as anyone can guess it's there. How can I hide it and make it accessible via .htaccess only to my IP address, or perhaps rename it so no one will find it?

share|improve this question

1 Answer 1

adding a htaccess to only allow by ip can be done by this:

AuthName "My Secret Area"
AuthType Basic
<Limit GET POST>
order deny,allow
deny from all
allow from 1.2.3.4
allow from .some.domain.org
</Limit>
share|improve this answer
    
Thanks! A couple of follow-up questions. What does AuthName do? What is the line allow from .some.domain.org? –  sarytash Feb 27 '12 at 18:14
    
Authname is the Htaccess message, it's just a message nothing special. The allow from .some.domain.org is if you want to allow people from a certain domain (multiple IP's with the same reverse lookup). –  Lucas Kauffman Feb 27 '12 at 18:26
    
Thank you very much! I will implement this and see that it works as planned and then accept your answer. –  sarytash Feb 27 '12 at 18:44

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.