I got some code to prevent hotlinking.
I want to protect my .rm (real audio) files but they're called by a .ram (real audio meta file) and the dont work because the .rm isn't called by any of these to sites but from the meta file.
how can I setup this thingies that it will work from the meta files?
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com/.*$ [NC]
RewriteRule .*\.rm$ - [G]
TIAHeres some code
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
RewriteRule *.ram$ /redirector.html [R,L]
the file, /redirectory.html is the place the page will forward the user to if someone is hotlinking. If you dont want them to be forwarded, just change is to a -Heres some code
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
RewriteRule *.ram$ /redirector.html [R,L]
the file, /redirectory.html is the place the page will forward the user to if someone is hotlinking. If you dont want them to be forwarded, just change is to a -
I haven't tested it and it works in theory?!?!
I want to protect my .rm (real audio) files but they're called by a .ram (real audio meta file) and the dont work because the .rm isn't called by any of these to sites but from the meta file.
how can I setup this thingies that it will work from the meta files?
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com/.*$ [NC]
RewriteRule .*\.rm$ - [G]
TIAHeres some code
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
RewriteRule *.ram$ /redirector.html [R,L]
the file, /redirectory.html is the place the page will forward the user to if someone is hotlinking. If you dont want them to be forwarded, just change is to a -Heres some code
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
RewriteRule *.ram$ /redirector.html [R,L]
the file, /redirectory.html is the place the page will forward the user to if someone is hotlinking. If you dont want them to be forwarded, just change is to a -
I haven't tested it and it works in theory?!?!