Protecting folders..

Protecting folders..

Posted by: sounds
Posted on: 2007-04-05 03:14:00

Protecting content..

Hi,

I have a number of audio files online but the problem is that anybody can open up
an url to the main folder that contains sub folders with my audio files in them.
So anybody can browse them, i don't want them to be able to open the content
of these folders through their web browser or anything, but i still want to be able
to give out the urls/links to the files in these folders,
Example:
if i gave someone a link to my audio file, they could play it in whatever media player,
But they couldnt follow the link over the web to access all my content.

Thanks later

If htaccess feature is the anstwer to this, i have to select at least one box in that setting,
and if i selected use a password, would that stop anybody from listening to my file if i gave
them the link. or how does that work, before i got setting it up.


GS #1Edited by sounds on 04/05/07 03:17 AM (server time).

Re: Protecting folders..

Posted by: monkeyboy7706
Posted on: 2007-04-05 03:33:00

You can change the .htaccess yourself. adding IndexIgnore * or Options -Indexes should prevent the index from being listed while allowing access to specific files.

You could also try when setting up htaccess in the web panel allowing hotlinking

Re: Protecting folders..

Posted by: JohnGalt
Posted on: 2007-04-05 03:35:00

Two words:

options -indexes

http://wiki.dreamhost.com/KB_/_Unix_/_.htaccess_files

http://wiki.dreamhost.com/KB_/_Unix_/_.htaccess_files#Disable_Directory_Listings


-+-$-+-$-+-
$97 Cash Back JOHNGALT97 ][ JOHNGALT $96 Cash Back

Re: Protecting folders..

Posted by: sounds
Posted on: 2007-04-06 01:03:00

Hi,

Bit confused,
I have a main folder with some subfolders/categories
I've added the htaccess features to the main folder
Should i add the options -indexes to the end of the text in
the htaccess file where that main folder is like this?

AuthType Basic
AuthUserFile /home/sxxx/sxxx.com/nite745/.htpasswd
AuthName "Members Area"
require valid-user
options -indexes

When i save that i get an error:

Warning: ftp_put() [function.ftp-put]: /hgjjh.com/jhjjfjgfj/.htaccess: Permission denied in /usr/local/ndn/web/webftp/includes/filesystem.inc.php on line 637

Normal textarea File: /sxxx.com/xxhyyhxx3745/.htaccess

Change the htaccess file premission to something else?


GS #1

Tags: foldersaudio filesserver timehtaccessweb browserurls