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 Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on Google+
Google+
Share on Tumblr
Tumblr
Buffer this page
Buffer
Pin on Pinterest
Pinterest
Email this to someone
email

You may also like...