Forum Moderators: phranque

Message Too Old, No Replies

Accessing File Types

         

Ybnorml

2:03 am on Mar 10, 2005 (gmt 0)

10+ Year Member



I think I remember once when someone said you could block certain filetypes from being run from the server or downloaded. What I'd like to do it have AVI or MPG files available for someone to download but not to run/view them from the server?

How would I go about making this happen?

Thanks!

jdMorgan

6:39 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a script to serve the files only after verifying that a short-lived cookie is present in the request. Because media players do not supply an HTTP_REFERER, simple .htaccess controls won't work, and more sophisticated means must be used.

Jim