• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Password Protected Directory with IP Exception

bradz

Regular Pleskian
On Plesk 11.5 / Centos 6.5 / Linux

I normally protect a given directory in the Plesk Contral Panel with a Username / Password.
I would like to bypass the username and password for visitors from one IP.
Is this possible? How can I do this?
Thanks,
Brad
 
bradz,

- you can limit authenticated (user/pass) access to a site's directory: "Website -> Password Protected Directories"
- you can deny access to the site using IP restriction: "Website -> Webserver settings -> Deny access to the site"

these features are independent, so you cannot add IP exception for a protected directory
 
Would htaccess do it?

Thanks Alexey,

Could I do it with an htaccess file in the directory I wish to protect via password but would like an IP exception?
If yes, does anyone have example code? Brad
 
Back
Top