Restrict access to folder

Hi

For using the FCKEditor (in phpList) I got the following advice on another site.

> For sessions use your site's user roles. So an admin will have access to certain files/folders, regular users to other files/folders, etc., depending on how your site's users are defined and how you set it up.

I want to protect the FCKEditor folder from outside, so that only I can access it. How can I do this?

The FCKEditor folder is inside my /home/username/public/mydomain.com/public folder, i.e. it is accessible through mydomain.com which I don't want.

3 Replies

Look into using ".htpasswd". Google will help.

Thank you, I will google it.

This means that I just need to put the .htpasswd file into the FCKEditor folder?

@Helveticus:

This means that I just need to put the .htpasswd file into the FCKEditor folder?
No, you'll need to put the .htpasswd somewhere (I usually have them in a non-public facing directory) and use an .htaccess file in the FCKEditor folder to set the requirement to use it.

Here's a basic overview of it's use:

http://davidwalsh.name/password-protect … g-htaccess">http://davidwalsh.name/password-protect-directory-using-htaccess

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct