Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How Can I protect a member's area folder on my site?

Advisor ,
Nov 01, 2016 Nov 01, 2016

Copy link to clipboard

Copied

I have a site working now, and with a member's area in a folder, all structured and linked together in Dreamweaver. I'm happy with it and if functions beautifully, but now the question... The member's area in the folder needs to be protected so just members have access. As it is, no one knows the address of the folder area, but once they do have access they need to keep the location URL to get back in. This means it is not protected from being shared with anyone, which I do not want.
I could change the name of the folder periodically, to discourage theft, but that is not a real solution. Do you have suggestions on how to approach this problem on a simple level?. I need to make access simple for people who have permission and hidden from people who don't.

Views

551
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 01, 2016 Nov 01, 2016

If it is just the one folder and you want easy security, then have a look at https://www.addedbytes.com/blog/code/password-protect-a-directory-with-htaccess/

Votes

Translate
Community Expert ,
Nov 01, 2016 Nov 01, 2016

Copy link to clipboard

Copied

If it is just the one folder and you want easy security, then have a look at https://www.addedbytes.com/blog/code/password-protect-a-directory-with-htaccess/

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

If your hosting plan gives you a c-Panel, log- in to your hosts panel and password protect your folder from there.  That's by far the simplest method.

  1. Log into your cPanel and click on the Password Protect Directories icon found under Security.
  2. Choose Web Root (you may also need to select Show Hidden Files)
  3. Click on the name of the directory that you wish to password protect.
  4. Check the box for Password protect this directory.

Nancy O.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

Nancy's suggestion is a nicer interface to achieving the same thing as Ben's suggestion. They are essentially the same suggestion in that they use the Apache webserver htpasswd function to create access users to a folder.

You asked for a simple solution and that is what you have been offered. If the solution solves your problem, then you are lucky. But note the following:

  • This solution requires you, the developer, to manage the password access individually, so it is not a good solution if there are many different folders to protect or individual member passwords to manage
  • This solution is visually crude. If you need the solution to visually match the appearance of the website, this is not it.
  • This solution is not very secure. Just google "how to hack htpasswd"
  • Your users can't manage their own passwords, have them emailed to them when they forget them, etc. These are things users expect to be able to do.

If it turns out that you do need more than the simple method offered here, then the solution becomes less simple.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

LATEST

As is often the case, You are all right and you all deserve 'Correct Answer' but since only one 'Correct Answer' is allowed as the choice, I will take the first response but want you all to know, each answer hear is insightful and is monumental in helping me. Since I am not proficient with 'interactive' code, even though I've read David Powers great book on PHP, I am left with a fog in my mind on the subject. Like all learning, I think I need to try the simple approach first, and learn from that. Later, necessity will become the mother of invention to either learn to streamline my site, or hire someone to take on the task and have it done right. I will fiddle with the simple approach first, then report back here with my findings

My sincere thanks to each of you for responding here, with much appreciation,

Ken

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines