"Brian Huether" <bhuetherNO@comcastSPAM.net> wrote in
news:3PCdne0jKd0omO_YnZ2dnUVZ_v2dnZ2d@comcast.com:
> Man, I have learned a lot today. I have gone through so much effort to
> try and prevent people from downloading files. I have mp3 files that I
> want people to listen to but I don't want them to save the file. So I
> went through all the pain of implementing a script.
>
> It is PHP, but I imagine other languages would be similar:
>
> function serveaudio($file) {
>
> $link = "audio/" . $file;
>
> $handle = fopen($link, 'rb');
> header('HTTP/1.1 200 OK');
> header('Date: ' . date("D M j G:i:s T Y"));
> header('Last-Modified: ' . date("D M j G:i:s T Y"));
> header("Content-Type: audio/mp3");
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Pragma: no-cache");
> header("Cache-Control: post-check=0, pre-check=0", false);
> header("Content-Length: " . (string)(filesize($link)) );
> header("Content-Transfer-Encoding: Binary");
> header('Content-Disposition: filename=\"$name\"');
> readfile($link);
> }
>
> I used htaccess to limit direct access to the files. But I noticed
> that as the file plays in Media Player, you can just choose Save As!
> So is there truly no way to prevent someone from saving an audio file?
> That doesn't seem possible...
>
> thanks,
>
> brian
>
>
>
No, there isn't. EVERYTHING you see on the internet is first put on your
computer. Either in memory or in cache or both. If you don't want the
saving it the broadcast it on the radio. Oh, wait. There's that darned
tape recorder thingy...
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----