I own a site filled with multimedia. All coded in ASP. Problem im having is that sometimes people are linking directly to the .wmv file on the site basically exausting my bandwidth. I need them to be coming to the page that the files is being played on. For example I want people to gotohttp://www.lesscrappy.com/moviepage.asp?ID=173 rather than the actual file on my server because the banner ads pay for my serving fees which are pretty big now. Is there anyway to ban people from directly accessing the .wmv's.
TIA
I'm pretty sure .htaccess can be modified to prevent direct linking to any file extension. I use it to protect my graphics, but I think it can be used for media files as well:
Using an anti-leech script such as this one: http://www.hotscripts.com/Detailed/19407.html will help you. That one is written in ASP. It is actually written to prevent image leeching, but it's pretty straight forward and you'll be able to modify it to suit your needs.
Bookmarks