• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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