January 29, 2010

TEXT SIZE minus plus

Prevent Hotlinking (Save Bandwidth)

Advertisement
You Might Be Interested In Our Popular Article
  • Most Essential Free Softwares After Windows Installation
  • Many a times Bloggers run out of their monthly usage without even their articles getting many hits, resulting in a downtime or paying penalty for specific hosting. This might be a result of Hotlinking, this means that the images you are hosting on your site are used by other sites by inserting same links in IMG tags, which sucks your bandwidth.

    This simple tutorial will help you prevent this in a snap.

    For Advanced Users:

    Note: Do take backup of your .htaccess(hypertext access) file.

    01. Search for a file named .htaccess(hypertext access) in the webroot of your server (FTP) and can be easily edited using any text editor (like Notepad). Open it and add below code in it:

    Options +FollowSymlinks
    #Protect against hotlinking
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc]
    RewriteRule .*.(gif|jpg|png)$ http://domainname.com/img/stop_stealing_bandwidth.gif[nc]

    02. Save and you are done.

    For Normal Users:

    You can download and install the below plugin for achieving such:
    WordPress Automatic Image Hotlink Protectionn

    Script Source:

    This concludes this simple and useful tutorial. Hope you like it.



    Related Posts From Network
    Print

    About the Author

    When I was born I was so shocked I didn't speak for a year and half...... My brain has 2 parts, Right and Left, The Right one has nothing left in it and the Left one has nothing right in it......Who says Nothing is Impossible?? I've been doing nothing for years......
    • http://www.netcrema.com/?p=26331 Prevent Hotlinking (Save Bandwidth) « Netcrema – creme de la social news via digg + delicious + stumpleupon + reddit

      [...] Prevent Hotlinking (Save Bandwidth)tutzone.net [...]

    • http://richworks.in Richie

      This is just what I wanted. I am a victim of this bandwidth problem. Can u tell what exactly this does?

      I upload my pics on DropBox and import images to my blog. This method has been quite effective but even then eats away the bandwidth. I want to try this method out. Thanks for sharing.

    • http://richworks.in Richie

      This is just what I wanted. I am a victim of this bandwidth problem. Can u tell what exactly this does?

      I upload my pics on DropBox and import images to my blog. This method has been quite effective but even then eats away the bandwidth. I want to try this method out. Thanks for sharing.

    • http://www.andysowards.com/blog/nerdy-daily-web-development-design-links/links-for-2010-01-29/ links for 2010-01-29 | AndySowards.com :: Professional Web Design, Development, Programming Freelancer, Hacks, Downloads, Math and being a Web 2.0 Hipster?

      [...] Prevent Hotlinking (Save Bandwidth) | TutZone Good practice to save you some bandwidth (tags: wordpress tutorial hack) [...]

    • http://www.tutzone.org/ Bariski

      Please read the reference link, that explains it all.

    • http://www.tutzone.org/ Bariski

      Please read the reference link, that explains it all.

    • http://desizntech.info/ Kawsar Ali

      Very useful tips.Stealing Bandwidth is bad, I don't know why people do it

    • http://desizntech.info/ Kawsar Ali

      Very useful tips.Stealing Bandwidth is bad, I don't know why people do it

    • http://www.ubervu.com/conversations/tutzone.net/2010/01/prevent-hotlinking-save-bandwidth.html uberVU – social comments

      Social comments and analytics for this post…

      This post was mentioned on Twitter by w3magazine: Prevent Hotlinking (Save Bandwidth): Many a times Bloggers run out of their monthly usage without even their artic… http://bit.ly/ct1VAA...

    • http://www.designfloat.com/story/119991/ designfloat.com

      Prevent Hotlinking (Save Bandwidth)…

      Many a times Bloggers run out of their monthly usage without even their articles getting many hits, resulting in a downtime or paying penalty for specific hosting. This might be a result of Hotlinking, this means that the images you are hosting on your…

    • http://hacktutors.blogspot.com/ Anup

      Thanks for the info!

    • http://hacktutors.blogspot.com/ Anup

      Thanks for the info!

    • http://lyndonology.com Lyndon

      Sweet, been looking for something like this for awhile. (Hits hand on forehead) I knew I should have checked for a WordPress plugin :)

    • http://lyndonology.com/ Lyndon

      Sweet, been looking for something like this for awhile. (Hits hand on forehead) I knew I should have checked for a WordPress plugin :)

    • http://realurl.org/twitted.php?id=8673769486 Twitted by Richbugger

      [...] This post was Twitted by Richbugger [...]

    • http://realurl.org/twitted.php?id=8673818548 Twitted by meddlesome

      [...] This post was Twitted by meddlesome [...]

    • http://realurl.org/twitted.php?id=8674403394 Twitted by heyangel

      [...] This post was Twitted by heyangel [...]

    • http://designi1.com/ designi1

      Very useful… thanks!

    • http://designi1.com/ designi1

      Very useful… thanks!

    • http://offmask.com/ Matt

      The first method is fabulous. I love that.

      But when others link to my files with a ref url, can it still work? My site is temporarily down so can't try it right now. Has someone tested this?

    • http://offmask.com/ Matt

      The first method is fabulous. I love that.

      But when others link to my files with a ref url, can it still work? My site is temporarily down so can't try it right now. Has someone tested this?

    • http://www.cocoanet.us/~web8_dantepasquale DantePasquale

      This technique works extremely well. My gallery is using Gallery2 which incorporates a wizard to set this up for you. Remember, that if you post links to facebook, for example, you need to allow facebook to be able to link. There are some good examples on the http://www.modrewrite.com/ — modrewrite forums which is linked off of modrewrite.com. Good luck and be sure to test thoroughly!

    • http://www.cocoanet.us/dantepasquale/gallery2 DantePasquale

      This technique works extremely well. My gallery is using Gallery2 which incorporates a wizard to set this up for you. Remember, that if you post links to facebook, for example, you need to allow facebook to be able to link. There are some good examples on the http://www.modrewrite.com/ — modrewrite forums which is linked off of modrewrite.com. Good luck and be sure to test thoroughly!

    • Connie

      A simple “do like that” without explaining the situation is not very helpful

      You should at least explain that all incoming requests for some image will show the image which is named in “http://domainname.com/img/stop_stealing_bandwidth.gif” so that “stop_stealing_bandwidth.gif” in the folder /img/ must exist, or better:

      that the call will present a defined image which must exist at the website instead of the called image

    • Connie

      A simple “do like that” without explaining the situation is not very helpful

      You should at least explain that all incoming requests for some image will show the image which is named in “http://domainname.com/img/stop_stealing_bandwidth.gif” so that “stop_stealing_bandwidth.gif” in the folder /img/ must exist, or better:

      that the call will present a defined image which must exist at the website instead of the called image

    • http://wp-popular.com/popular-word-press-websites/prevent-hotlinking-save-bandwidth/ wp-popular.com » Blog Archive » Prevent Hotlinking (Save Bandwidth)

      [...] here to read the rest: Prevent Hotlinking (Save Bandwidth) Tags: hack, hotlinking, [...]

    • http://www.webmastern.se/2010/02/20-nyttiga-lankar-for-dig-som-bloggar/ 20 nyttiga länkar för dig som bloggar : Webmastern.se

      [...] Prevent Hotlinking (Save Bandwidth) Så gör du för att ingen skall sno bandbredd från dig genom att länka till dina bilder. [...]

    • http://wpthemesdir.com/wordpress-news/prevent-hotlinking-save-bandwidth-tutzone/ Prevent Hotlinking (Save Bandwidth) | TutZone | WordPress News

      [...] Read more here: Prevent Hotlinking (Save Bandwidth) | TutZone [...]

    • http://www.tripwiremagazine.com/2010/02/130-need-to-check-out-posts-for-designers-and-developers.html 130+ Need to Check Out Posts for Designers and Developers | tripwire magazine

      [...] Prevent Hotlinking (Save Bandwidth) [...]

    • http://www.favshare.net/ favSHARE

      This article has been shared on favSHARE.net. Go and vote it!

    • http://www.favshare.net/ favSHARE

      This article has been shared on favSHARE.net. Go and vote it!

    • http://www.designyourway.net/blog/resources/very-useful-65-wordpress-hacks/ Very Useful 65 Wordpress Hacks | Design your way

      [...] Prevent Hotlinking (Save Bandwidth) [...]

    • http://www.hostrage.com/can-i-use-a-file-hosting-site-as-a-dedicated-server/ can I use a file hosting site as a dedicated server? | Host Rage

      [...] Prevent Hotlinking (Save Bandwidth) | TutZone [...]

    • http://www.bingsite.org/plzz-answer-i-beg-you-free-mp3-hosting-with-hotlinkunlimited-bandwidth.html Plzz answer..i beg you : Free mp3 hosting with hotlink,unlimited bandwidth? | BingSite

      [...] Prevent Hotlinking (Save Bandwidth) | TutZone [...]

    blog comments powered by Disqus