Ht access coding?

SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back