torifile
2006-11-24, 21:57
I'm having trouble preventing people from hotlinking my files. Not that I care all that much, but I've tried, unsuccessfully, to keep it from happening. I'm trying to use .htaccess to do it but it's not working.
Options +FollowSymlinks
# no hot-linking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?stevesremoteclicker\.com/ [nc]
RewriteRule .*\.(mp3)$ http://www.stevesremoteclicker.com/wp-content/uploads/audiotest.au [nc]
This is just some code I found on the net and tried to adapt. Any ideas?
Options +FollowSymlinks
# no hot-linking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?stevesremoteclicker\.com/ [nc]
RewriteRule .*\.(mp3)$ http://www.stevesremoteclicker.com/wp-content/uploads/audiotest.au [nc]
This is just some code I found on the net and tried to adapt. Any ideas?