# Failed directory privacy

**URL:** <https://forum.infinityfree.com/t/failed-directory-privacy/83416>\
**Category:** Hosting Support\
**Created:** [September 28, 2023, 8:48am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416 "2023-09-28T08:48:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![somebadhat](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/somebadhat/32/4846_2.png) [@somebadhat](https://forum.infinityfree.com/u/somebadhat)\
**Post date:** [September 28, 2023, 8:48am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/1 "2023-09-28T08:48:04Z")

</div>

### Website URL

[https://www.dfellows.rf.gd/private](https://www.dfellows.rf.gd/private)

### Error Message

This is a directory protected by a username and password. After 3 years it has stopped accepting the username and or password. I deleted the username in the control panel directory privacy. I recreated the username with a new password. After failing twice it gives me a 403 forbidden error. Can you help? Thanks. Doug.

### Other Information

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [September 28, 2023, 9:16am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/2 "2023-09-28T09:16:30Z")

</div>

Hi.

Please use file manager (Monsta FTP)

1. come inside that dir `(private)`

2. delete these two files ![Screenshot 2023-09-28 110912](https://forum-cdn.infinityfree.net/original/3X/3/3/33c9b7c853fa523443722d1bc92001fff34b0714.jpeg)

Note - Just in case, check if maybe you have some important code in that specific `.htaccess` file other than the code for dir privacy (how? right-click → edit → read the content), so save it for backup.

And don’t use the privacy dir from the control panel anymore  
please use the one from **the client area**

 ![image](https://forum-cdn.infinityfree.net/original/3X/d/9/d9f2cfdbae305fdc5f9ae7a422e90ed9317d1133.png)

and select the desired dir, user and pass there.

---

<div class="post-metadata">

**Author:** ![somebadhat](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/somebadhat/32/4846_2.png) [@somebadhat](https://forum.infinityfree.com/u/somebadhat)\
**Post date:** [September 28, 2023, 9:29am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/3 "2023-09-28T09:29:31Z")

</div>

Did as you suggested. Used the file manager to delete the two files in the protected directory. Went to the client area. Accessed the directory privacy feature. Selected the directory. Created a username and password. Went to the protected directory and got a 403 forbidden error message.

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [September 28, 2023, 9:32am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/4 "2023-09-28T09:32:23Z")

</div>

it’s normal - because you don’t have an index file inside

but you can:

edit the existing .htaccess file and add `Options +Indexes` line of code below the existing code (see line 11)

 ![image](https://forum-cdn.infinityfree.net/original/3X/5/5/5568fe2370d2e3c1de2ef0f4f22f04be31835a1f.png)

save !

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/docs?topic=58664):
>
> Getting a 403 error means the server is refusing to show your webpage. Here are the most common causes and how to fix them: 1. Website Files Are in the Wrong Location The Issue: Your domain might be pointing to an empty or non-existent folder. How to Check: Log into your [InfinityFree client area](https://dash.infinityfree.com) Go to Accounts → [Select your account] → Domains → [Find your domain] → Manage Find the Directory Status card, and look at the Directory displayed there Understanding the folder structure: Your fi…

---

<div class="post-metadata">

**Author:** ![somebadhat](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/somebadhat/32/4846_2.png) [@somebadhat](https://forum.infinityfree.com/u/somebadhat)\
**Post date:** [September 28, 2023, 9:48am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/5 "2023-09-28T09:48:15Z")

</div>

Success. Thank you. Doug.

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [September 28, 2023, 9:54am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/6 "2023-09-28T09:54:44Z")

</div>

You’re welcome  
it wasn’t hard when I see you know what you’re doing 👍

---

<div class="post-metadata">

**Author:** ![somebadhat](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/somebadhat/32/4846_2.png) [@somebadhat](https://forum.infinityfree.com/u/somebadhat)\
**Post date:** [September 28, 2023, 11:02am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/7 "2023-09-28T11:02:51Z")

</div>

Your directions were spot on, concise and thorough. I did not look in my original .htaccess file before deleting it. I had a bunch of directory listing styling in it. I should have downloaded it. It’s been years since I created it. I’ll recover it when I get my desktop set up again; if I’m lucky; but I have it styled good enough for now. Thanks. Doug.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 5, 2023, 11:03am UTC](https://forum.infinityfree.com/t/failed-directory-privacy/83416/8 "2023-10-05T11:03:24Z")

</div>

Closed on October 5, 2023, 11:03am UTC

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