For more information and special deals related to any of the issues on this page, place your cursor over the double-underlined links. All information supplied by Kontera.com. Kindly subscribe to my feeds via RSS reader or via e-mail if you want more updates.
Image hotlinking is when other people display the image hosted in your web server on their own website. That is, they directly use the image from your website, instead of downloading it and uploading it on their own server.
This is not a problem if you have plenty of bandwidth, a dedicated server and you don’t care.
However, if you are in a paid shared hosting service where every KB of bandwidth, every memory and CPU usage count, allowing image hotlinking could give your web server additional load. Your bandwidth can be consumed faster. Memory and CPU usage could be higher than normal if someone hotlinked one of your images in a high-traffic site.
Because of this, I decided to disable hotlinking of images hosted on my blog. Images will only be displayed if it is used by macuha.com. Sites hotlinking to the images will see nothing.
Here’s the code I added on my .htaccess to accomplish this task:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?macuha.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]
If you have cPanel. this could be accomplished easily. Here’s how. I don’t have cPanel so I have to directly edit the .htaccess file.
Download your free Guerilla Bloggers' e-book here!
Bored? Play Pinoy HangARoo!
If you like this post, buy me a beer!





































August 1st, 2008 at 12:50 pm
Oheay… thats one of the problem yung mga bloggers running there domain.. kasi medyu mahal nga yung bandwidth…But you shuld be happy if pag aabot kana ganun..kasi meaning okay na yung traffic mo unless yung mga asstes mo e anglalaki nila image/video… Before i do add bandwith 5gig/week.. sobrang maintenance… thats why i decide na kumuha nlng ng vps… ang now… no worry na ako i can set my bandwith unlimited….
August 1st, 2008 at 3:21 pm
sir, pa x-link naman o please
August 1st, 2008 at 4:52 pm
wow! nice tips, tamang-tama yan, naka shared hosting lng kc me. btw mmya n yung solar eclipse, hindi siya kita sa pinas kaya may live webcast link sakin.
August 2nd, 2008 at 6:00 am
@Jan Alvin - hehehe di ko nakita yung solar eclipse nakatulog ako.. hehehe
August 2nd, 2008 at 8:54 am
Nice tip. I just enabled it (after I read it here) in my cpanel. The only drawback here is pwedeng bumagal ang loading ng pages mo. Pero kung wala kang gaanong visitors gaya ko, wala kang masyadong mararamdaman.
August 2nd, 2008 at 12:24 pm
great tip! thanks! will do that on my sites.
@ jan alvin - palaging huli ako sa balita.. hahaha sayang. tsk.
August 9th, 2008 at 3:10 am
Great advice man. Image hotlinking is really annoying, and this is how I stop it. More posts like this in the future please.!
August 12th, 2008 at 7:58 am
That is really good info to have. I don’t have a problem with
hotlinking but my girlfriend does. Muchly appreciated.
August 12th, 2008 at 2:55 pm
Thanks for the heads up. Nothing more annoying that hotlinking. Arent those days over yet ?