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
@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.”
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.