Forum Moderators: phranque
now i'm using this .htaccess file ( created by a generator )
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^http(s)?://(www\.)?domain.com [NC]
RewriteCond %{HTTP_REFERER}!^http(s)?://(www\.)?domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http(s)?://(www\.)?ip_address [NC]
RewriteCond %{HTTP_REFERER}!^http(s)?://(www\.)?ip_address/.*$[NC]
RewriteRule \.(asx)$ - [NC,F,L]
Now, hotlinking of my .asx file is disabled on my domain.com too, and direct access to the .asx file is enabled.
How to grant hotlink and direct access to the .asx file just from my domain?
Regards,
g3nti
You can either use a cookies-based script to serve your protected content, or use dynamic URLs for the protected content -- give each visitor a different URL for each file, so that the content cannot be linked-to or directly accessed except for a short period of time.
Both approaches are somewhat complex and involve server-side scripting, so only you can decide if this is worthwhile.
We've got quite a few previous discussions of protecting media files from theft and hotlinking here, if you want to use the site search [webmasterworld.com] to look for them.
Jim