Protect a directory..?

mikel2k3

New Member
Messages
748
Reaction score
0
Points
0
Right, just a quick question that will probably have a quick answer.

Looked on google, but thought I would get a more straight forward answer here.

I want to stop direct access to a folder on one of my clients websites.
But I still want the files to be accessed when given a direct link to them.


I think there used to be something on cpanel that does this, but last time i remember trying it, it also blocked direct access to the files.


It doesnt have to be password protected or anything, just a forbidden page will do for me.


Cheers,
Mike



:::::EDIT::::::

Nevermind, think ive sorted it.
I just changed the File Attributed of the folder so that the Public can only Execute, but not Read or Write.
Is this right?


Mike
 
Last edited:

ThePBgod

New Member
Messages
34
Reaction score
0
Points
0
This may not be your best solution. But a simple index.html file can be loaded to the directory you wish not to be viewed. They will see this index page, and not the files in that directory.
 

sunils

New Member
Messages
2,266
Reaction score
0
Points
0
/***************Moving to off Topic Section*********/

Reason:- Doesn't fit in any section.
 

REBEL21

New Member
Messages
355
Reaction score
0
Points
0
You can protect directorys and stop unauthorised use in cpanel just click on password protect directories
 

mikel2k3

New Member
Messages
748
Reaction score
0
Points
0
last time i tried that, you had to put a password in to view anything on the site.

Such as, if you password protected an 'images' folder, no images would work on a website unless you knew the password.

Chaning the permissions manually seems to of worked.
Or like tonykgv said to just put an index.html file there.
 

GBH187

New Member
Messages
58
Reaction score
0
Points
0
put a simple index.html or change the web server config to not list directory contents
 

Zangetsu

New Member
Messages
491
Reaction score
1
Points
0
or you could edit the .htaccess file and Type "Deny from All" without quotation marks presuming you have an .htaccess file
 

cowctcat

New Member
Messages
401
Reaction score
0
Points
0
All you would have to do is turn off indexing for that folder in cpanel with the index manager
 
Last edited:
Top