Forum Moderators: phranque

Message Too Old, No Replies

Hotlinking of ASX files not Working

asx files on my server should run & accesible from my site only

         

mp3mechanical

12:54 pm on Aug 24, 2006 (gmt 0)

10+ Year Member



hi all,
i am running a small streaming media site, in which i have stream links(mms://) in the ASX files.I have putted my all asx files in "mydomain.com/asx/" directory & all my pages are in "mydomain.com/" directory(i.e. mydomain.com/movie1.html).

i want to protect my asx files to be stolen or anyhow downloaded/accessed from anywhere except my site.
bcoz i have putted my money on mms server & dont want that leechers play my video on their site.

firstly i use password protection of directory /asx, but every time visitor try to view any video, he have to enter username&password. but users feedback is very dissappointing & i lost my visitors very sharply.

then i decided to use hotlink protection( CPanel tool), that is used for preventing to hotlink images.i just added asx in the filename extensions list of jpg,gif,bmp but doing this video doesnt runs.

then i decided to use .htaccess , in starting i thinked that denying all users except from my domain name will do the thing but this also didnt work as video not playing .
hav a look at my .htaccess file

order allow,deny
allow mydomain.com
deny from all

now i am totally screwed & fatigued up by trying different methods for preventing my asx files. :(

can anyone suggst me the way to protect my asx files to viewed or downloaded by others.

does anyone have any idea about $http_referer or ReWriteEngine method.

i have found a ReWrite example for Image files,can anyone convert/modify this code for "asx" files.
ReWriteEmgine Example:

RewriteEngine On
RewriteCond %{HTTP_REFERER}!^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER}!^$
RewriteRule .*\.(jpe?g¦gif¦bmp¦png)$ /images/nohotlink.jpe [L]

Please Help me or Suggest anyother way except changing filenames/links frequently(currently i m doing this).

thank you in Advance.