| Deny direct access to directories [message #558] |
Wed, 06 September 2006 16:18  |
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!
|
|
|
|
| Not exactly what I need [message #623] |
Sat, 30 September 2006 21:58  |
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!
|
|
|