If you're here to drop Entrecards (it's way down below..), please take some time sightseeing! You won't be dissapointed!
Powered by MaxBlogPress  

 

Save Your Bandwidth - Prevent Unwanted Image Download from Your Site

Save Your Bandwidth - Prevent Unwanted Image Download from Your Site

Mar 2008 | Category: General Tips

HomeBiz Resource - bandwidth Do you use pictures on your posts? Do you often losing up bandwidth but you know you didn’t use that much? If so, you may want to know that sometimes people find your picture interesting and they use them on their blog/site. You can say “It’s OK, the picture is not copyrighted and anybody can use it”. However, I don’t speak in the name of copyright issues here.

When we use graphics, we tell the browser where to take the the picture using <img src=”imagesource” />. When some people put your image link in their tag, it reads like <img src=”take the picture from his server” />, and you know what that means? That’s right! Someone else’s using your bandwidth!

And if for long you’ve been wondering what has been eating up your quota, you may want to fix this issue. Sometimes, people have done it without realising that it is inflicting some loss at your side, so don’t be that furious :) . I admit that in the beginning of my blogging, I did such thing once or twice. I thought it was a small picture and didn’t cause any loss to the other side. :p

Anyway, if you want to do something to prevent your bandwidth wasted, you could do a little modification on your .htaccess file. These tips I found on thesitewizard.com and david airey’s post.

SetEnvIfNoCase Referer “^http://www.your-domain-name-here.com/” locally_linked=1
SetEnvIfNoCase Referer “^http://www.your-domain-name-here.com$” locally_linked=1
SetEnvIfNoCase Referer “^http://your-domain-name-here.com/” locally_linked=1
SetEnvIfNoCase Referer “^http://your-domain-name-here.com$” locally_linked=1
SetEnvIfNoCase Referer “^$” locally_linked=1
<FilesMatch “\.(gif|png|jpe?g)$”>
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>

Change “your-domain-name-here.com” to your own. And also do not correct the spelling “Referer” (with only one “r” in the middle of the word). It is the word that needs to go into the .htaccess file - do not change it to “Referrer”. More information on the code is on the links above the code.

Or you can alternatively use something like this

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

You need to create a custom image titled nohotlink.jpe, and upload it to your /image/ folder. Notice the file extension .jpe - this is because .jpeg and .jpg files are now blocked from appearing on third party websites, but this exception allows you to show your custom image. What custom images you can put there? Get your ideas referring to David’s post.

If you concern that doing so will eat up your bandwidth, I recommend a HostMonster hosting service. Currently they cater 15,000 Gigs of Bandwidth Transfer and 1,500 Gigabytes of Hosting Space with only $6.95 per month. There’s no worry about exceeding bandwidth quota anymore! I’ve been with them for more than a year and never had issues and for that 1 year time I only had about 5 hours of downtime. Check them out!

HomeBiz Resource - Stop bandwidth theft! Finally, how did you yourself source images in your site? Did you outsource them to other webmaster’s server? Now that you know it is kinda Dr.Evil.., let’s use our own server from now on.

Technorati Tags: ,,

If you like this post, why not subscribe


More articles you'll like:


Fast and semi auto bookmark to 45 social bookmarking services! Add to Technorati Favorites Add to Mixx! Add to BlogEngage



Blog Responses to this post:

2 Comments | Subscribe to Comments by Email or RSS | Trackback URI »

Jack Payne on 2008-03-05 05:05:57 said
MyAvatars 0.2

You know, I never gave bandwidth much thought. Despite having a window about not enough flash power (or something like that) being popped at me countless times. These sites were usually loaded with pics, though. Guess that won’t effect me. No pictures.

Thanks for the update. Appreciated.

Louis Liem on 2008-03-05 08:38:03 said
MyAvatars 0.2

Your welcome, Jack!
If there are no pictures, somthing like this won’t be a thing to worry :)

 
 
Author / Blog Name
E-mail (optional)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
Subscribe to comments via email

« Previous Post     Next Post »