-
1. Re: Blocking access to media files
Mylenium Aug 4, 2009 1:18 AM (in response to Mike_Watt)Well, sounds like you really should get into a CMS/ blog system. E.g. in Wordpress this would be easy by password-protecting pages/ posts - a user that is not logged in, is denied access to all files that don't belog to him, even if he knows the link (if you work within the framework, of course). The simple mod-rewrite I was suggesting elsewhere would of course work on a directory basis, but doesn't take care of user management...
Mylenium
-
2. Re: Blocking access to media files
Maneet Puri Aug 4, 2009 4:21 AM (in response to Mike_Watt)Hi,
What you can do is every time a movie is to be shown first move it to a temp folder from the actual location and then run it from there.
You can then write a script that will execute after every say 30 minutes and will delete the files created in the temp folder one hour back or maybe 30 minutes ago. This time will depend on the what duration movies you are listing on your website.
And for users to save they can do it from the temp location itself. So even if any user knows the path cannot download it as the movie file will not be there after some time.
Hope this makes sense to you
Cheers,
~Maneet
-
3. Re: Blocking access to media files
Mike_Watt Aug 4, 2009 1:28 PM (in response to Maneet Puri)It does make sense in theory, though I'd have no idea where to begin... can you point me towards anything like this that I can look at?
Would this be similar to writing to a temp directory when a user uploads a file (as far as scripting is concerned)?



