Take the 2-minute tour ×

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
add comment

1 Answer

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
allow from .some.domain.org
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
add comment

Your Answer


