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

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
1  
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 duosecurity.com on some of our admin back-ends in addition to IP and password based protection. –  sam Jun 21 '11 at 18:39

1 Answer 1

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

 
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.