Fighting with Bandwidth

I been on my own server for quite some time .. so i don’t really do any control on the bandwidth, because not really that much of site on the server, now after i move to a reseller account, with limited resource then i start to realiaze the important of controling the bandwidth.

one of the thing that i realiaze is some of my image seem been hotlink by some bandwidth theft , so prevent hotlink by htaccess

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]

added these into the htaccess and you can test by the hotlink tester to see is your image still allow people to hotlink, hmmmmm after the hotlink issue next one will be spam ?

Share it with your friends, thanks !
Share on FacebookTweet about this on TwitterShare on Google+Share on TumblrBuffer this pagePin on PinterestEmail this to someone

You may also like...