Home » Htaccess Tools » Questions regarding htaccess » Deny direct access to directories
Deny direct access to directories [message #558] Wed, 06 September 2006 16:18 Go to next message
RandomHero  is currently offline RandomHero
Messages: 2
Registered: September 2006
Location: Montreal, Canada
Hi

I have a server, let's pretend it is http://www.myserver.com . I need to have a directory called downloads that will contain a bunch of directories in it. I want to deny direct access to /downloads and everything in it (files and and folders) except if it is called directly from one of the wepages hosted on http://www.myserver.com

Ex.:
http://www.myserver.com/downloads/september06/myFile.pdf isn't accessible by the browser but

<a href="www.myserver.com/downloads/september06/myFile.pdf">View my pdf file!</a> is accessible only if the link is included in files on my http://www.myserver.com server

Thanks a lot!
Deny direct access to directories [message #575] Tue, 19 September 2006 10:41 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
What you need is hotlink protection.
Not exactly what I need [message #623] Sat, 30 September 2006 21:58 Go to previous message
RandomHero  is currently offline RandomHero
Messages: 2
Registered: September 2006
Location: Montreal, Canada
I want my webpage to play a mp3 file located in that /download directory using dewplayer.swf

For that, I have to call my file with a script like ...dewplayer.swf?song=downloads/mysong.mp3...

So if the user check in the page source, he'll see the path of the mp3 and copy/paste it in whatever software he's using to download files, even in MediaPlayer and he will save the mp3 to his computer....

So I want only my webpage to be able to access to the mp3 files in the /downloads directory but i don't want users to be able to access the files by any other possible ways...

I ried with the directory permissions, .htaccess file, etc. But I can't find an appropriate solution to let my swf to play the mp3 files and at the same time, preventing the user to stole my mp3s...

Somebody can help me? Thanks a lot!
Previous Topic:More hotlinking problems.
Next Topic:Redirect help Please
Goto Forum:
  


Current Time: Sat May 17 07:32:43 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software