# Basic Password Protection

**URL:** <https://forums.realmacsoftware.com/t/basic-password-protection/31905>\
**Category:** RapidWeaver Classic\
**Created:** [March 24, 2020, 3:48pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905 "2020-03-24T15:48:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 3:48pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/1 "2020-03-24T15:48:05Z")

</div>

Hello. I recently purchased the Password protection tutorial, as I need to be able to password protect one of the webpages on my site. The tutorial was quite good, and Ben did a great job explaining everything, but it simply won’t work.

I am trying to use the basic .htaccess and passwd option, as that is the basic kind of security I need. I followed all of the steps included accurately (went through twice to be sure), and there is no change on the site. No matter where I place the file (index or the intended page) I am never asked for login credentials at all. Please help!

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 24, 2020, 5:22pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/2 "2020-03-24T17:22:46Z")

</div>

Without seeing what you have done with the htaccess and passwd files it’s hard to say what is going on.

Perhaps you can copy and paste (please mark it as Preformatted text `</>`) what you have.

---

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 5:32pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/3 "2020-03-24T17:32:36Z")

</div>

The htaccess (this has been placed in the sub-folder for the page I want the password protection on):  
\</AuthType Basic  
AuthName “My Protected Area”  
AuthUserFile G:\PleskVhosts\[oldzionlutheran.org](http://oldzionlutheran.org)\index/.htpasswd  
Require valid-user/\>

The passwd (in the index directory):  
\</member:$apr1$2s69471r$GzIMb3EcR0IPzVNrP9oz41/\>

If you go to www DOT oldzionlutheran DOT org, click on This Sunday tab \> Liturgy and Music. The Liturgy and Music page is what I am trying to protect with the simple pass word. Thank you.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 24, 2020, 7:42pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/4 "2020-03-24T19:42:15Z")

</div>

First off,  
My answer above about " (please mark it as Preformatted text \</\>)" might have confused you.

To mark things like that you select the text and select the `</>` right above where you type your post:

 ![2020-03-24_12-29-16](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/b/2/b237ff4fb3ecc6ef326547b187ae81154f316be9.jpeg).

Sorry about not being clearer.

I don’t have the video you are using as a guide, but there are a few things.

Not sure where you got the path:  
`AuthUserFile G:\PleskVhosts\oldzionlutheran.org\index/.htpasswd`  
That doesn’t look right.

1. You usually don’t have a drive letter in this path
2. Plesk is a control panel
3. most paths on web servers use forward slashes `/` not backslashes `\`.

Also, keep in mind that this method of securing part or all of a website only works if the webserver is Apache. It will not work with any other web server (Windows, Nginx, IIS, etc).

You didn’t say who the hosting company is, but the `\` is a windows thing.

Here is a good article on setting up a password:

> **[Password protecting your site with an .htaccess file](https://help.dreamhost.com/hc/en-us/articles/216363187-Password-protecting-your-site-with-an-htaccess-file)**
>
> Overview
> 
> This article explains how to password protect your directory via SSH by creating an .htaccess and .htpasswd file. The following steps are covered in this article.
> Creating the files
> 
> Step...

---

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 7:46pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/5 "2020-03-24T19:46:42Z")

</div>

Sorry for not formatting that correctly.

Yes, that did not seem right when I saw that either, but I followed the tasks in the video by Ben (a php code file that indicated the file path).

The website is technically hosted on Go-Daddy, so I guess that could be the problem? The website itself is built on RapidWeaver on my mac.

Thanks again.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 24, 2020, 7:51pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/6 "2020-03-24T19:51:00Z")

</div>

> [@villetbone](#):
>
> The website is technically hosted on Go-Daddy,

That might be the issue. Godaddy has a bunch of different hosting plans, many are not Linux/Apache but Windows.

---

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 7:51pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/7 "2020-03-24T19:51:38Z")

</div>

Already took the step of contacting them - thanks for the heads up. This is quite an annoying task.

---

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 8:43pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/8 "2020-03-24T20:43:11Z")

</div>

OK, so it turns out I do indeed have a windows server with a Plesk Admin panel - which seems to mean that all the advice in this tutorial I purchased through RapidWeaver is completely useless.

Is there a way to make this work on a Windows server in a similar way? This kind of higher level network stuff is a little out of my intermediate hands…

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [March 24, 2020, 9:07pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/9 "2020-03-24T21:07:45Z")

</div>

I know you probably don’t want to hear this, but you are going to continue to have issues with Windows server.

This is how godaddy gets you, they offer Linux/Apache hosting at a higher price. It’s the old bait and switch thing, it sounds cheap but by the time you get a service that actually works for you it costs more than competitors.

I’d suggest you either “upgrade” to a Linux/Apache plan, or change to a different hosting company.

I would probably cut my losses and change host now, you probably will eventually anyway.

---

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 9:14pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/10 "2020-03-24T21:14:12Z")

</div>

They actually offered me a switch to a Linux hosting plan with cPanel at a _lower_ price…

Although - I have been looking through their plesk administration panel, and have found options to password protect a directory through them, but alas, that does not seem to work either; shocked though I may be.

---

<div class="post-metadata">

**Author:** ![villetbone](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@villetbone](https://forums.realmacsoftware.com/u/villetbone)\
**Post date:** [March 24, 2020, 9:26pm UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/11 "2020-03-24T21:26:15Z")

</div>

Actually - I did get it to work through the Plesk administration panel. That was slightly infuriating, but just the basic that I needed. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [April 24, 2020, 7:26am UTC](https://forums.realmacsoftware.com/t/basic-password-protection/31905/12 "2020-04-24T07:26:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
