Ht access coding?

SpaceshipSpaceship
Watch

domainabilities

Established Member
Impact
2
Can anyone help me as to how I can create an ht access file to stop hot linking to mp3's on my website.? The host has an option to prevent hot linking but it is for image files and not mp3s My music website is being bombarded with websites doing this and it is killing me on bandwidth. Thanks for any help I can get on this.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)example.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ - [F]

This should do the trick, just replace example.com on line 3 with your hostname.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back