Forum Moderators: phranque
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.