Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an admin panel on the back of my website, and I wish to restrict public access to this, I know however if I do this then I will lose the remote access, which I want to keep.

I am running on a linux server with cpanel. Is it possible to restrict access to this dir without losing remote access?

I was told one could restrict IP access using VPN?

share|improve this question
Doesn't cpanel have an option to password protect a specific directory (using .htaccess files)? – EightBitTony Jun 21 '11 at 15:11
im not sure, i was thinking about restricting it using htaccess (too 1 IP only), but wasn't sure how secure this was. – Lunar Jun 21 '11 at 15:13
Depending on how serious you are about security, we use the products from on some of our admin back-ends in addition to IP and password based protection. – Smudge Jun 21 '11 at 18:39
up vote 0 down vote accepted

Isn't there a login/password requirement to access the admin section? Though it's not the most graceful solution, you could restrict by IP using htaccess.

order deny, allow
deny from all
allow from 111.222.333.444
share|improve this answer

Your Answer


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.