We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Password protection via .htpasswd

Development and Programming

ATE Media Ltd.'s avatar
ATE Media Ltd.
3 posts
14 years ago
ATE Media Ltd.'s avatar ATE Media Ltd.

Hi all,

i am working on site, where we need password protecting via .htpasswd (because of external systems). As i made a little research, i found there is propably no way, how to resctrict some part of url with .htaccess and .htpasswd directly and HTTP Auth for templates doest not support .htpasswd files.

My ideas for this problem are: 1, Create plugin for throwing HTTP Auth dialog and manually check .htpasswd and match. 2, Create extension, which could “maybe” hook login API on HTTP Auth for templates and match agains .htpasswd. 3, Import users from .htpasswd to members group (but i while ago i have found problem with saving of groups in Access dialog for templates, so now useless).

I am working now with latest 2.2.1 version.

So i am asking, what is best and easies idea, or does anybody have any other ideas or suggestions?

Thanks for help,

Daniel

       
ATE Media Ltd.'s avatar
ATE Media Ltd.
3 posts
14 years ago
ATE Media Ltd.'s avatar ATE Media Ltd.

Solved via virtual hosts and htaccess.

       
marcusramirez's avatar
marcusramirez
2 posts
one year ago
marcusramirez's avatar marcusramirez

@slope game said: “If the site’s structure allows, use .htaccess with .htpasswd for directory-level protection. For more complex scenarios, a custom plugin or PHP script for HTTP authentication will give you the flexibility to validate .htpasswd in more dynamic situations.”

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.