2

I want to password protect one specific page on an ee site.

http://nameofsite/site/media

for some reason I can't get it to work

I have both htaccess and htpasswd in the site folder.

2
  • This doesn't appear to be specifically related to ExpressionEngine. Can you please clarify your question with details about your EE setup? Dec 4 '13 at 22:54
  • Using EE2. I've done this on several other sites, never had to in EE. basically I want the site's visitor to be prompted with a form to enter the username and password to access only one page on the entire site. the set up is pretty basic. The site is hosten on Enginehosting. the template itself doesn't use any EE channel entries it's pretty much just a flat file with a few links in it. Dec 5 '13 at 0:53
1

Since /site/media this isn't really a directory you won't be able to do it with plain old htaccess. But you can use ExpressionEngine's Template Access Restriction to accomplish the same thing, though.

See the option on HTTP Authentication

If this setting is enabled, users will be prompted to login with their username and password to view the template using a standard HTTP Authentication dialog box.

Just set up a user account with the desired username and password. You may want to create a member group with the correct permissions just for this one account.

3
3

You might try using Authentic, a plugin which specifically lets you set up basic authentication on arbitrary templates.

1
  • Thanks for taking the time to help Jeremy, I decided to go with Template Access Restriction. Dec 5 '13 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.