Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.
RewriteEngine onJust copy and paste that into a text file, renaming the URLs as appropriate, and then drop the file into the directory where you keep your mp3s. Then change the file's name, including the file extension to .htaccess and you're sorted. I redirect people to a special redirect page that explains why they're there and hopefully might even tempt some of them to read my site. That way I stand half a chance of getting something out of the whole thing.
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourwebsite.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?someotherwebsitethatcanhotlinktoyou.org(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|mp3)$ http://yourwebsite.com/redirect.html [R,NC]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?prettymuchamazing.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mossipblog.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|mp3)$ http://prettymuchamazing.com/about/hotlinking-isnt-nice-dude/ [R,NC]
I've cleared my cache a few times to make sure, error persists. What did I do wrong?
PS: I deleted the .htaccess so my images/mp3s can work, but i still want to stop mp3 hotlinking
it's too ironic that the # 1 pirate blog on the net is complaining about someone stealing his bandwidth
Does the Wordpress uploads folder have subdirectories in it, because that might be the problem, but that's just a wild guess.
Luis, did you just create an .htaccess file? If not, paste Loudersoft's code into the original .htaccess that is either in your root directory or /wordpress directory (if you named it something else). Your htaccess needs to have its original contents and the new file overrides it which is probably causing the error.
thanks for the tips, I will give them all a try and see what works!
Hmm I should experiment with the code and just have all the hotlinking mp3s re-direct to my front page. Probably would increase traffic.
1 to 30 of 30