{"id":7722,"date":"2009-12-28T18:25:19","date_gmt":"2009-12-28T18:25:19","guid":{"rendered":"https:\/\/www.amitbhawani.com\/blog\/?p=7722"},"modified":"2009-12-28T18:25:19","modified_gmt":"2009-12-28T18:25:19","slug":"stop-image-hotlinking","status":"publish","type":"post","link":"https:\/\/www.amitbhawani.com\/blog\/stop-image-hotlinking\/","title":{"rendered":"Ways to Stop Image HotLinking &#038; Bandwidth Theft"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Image-Hotlinking.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Image-Hotlinking-150x150.jpg?resize=150%2C150\" alt=\"Image Hotlinking\" title=\"Image Hotlinking\" width=\"150\" height=\"150\" class=\"alignright size-thumbnail wp-image-7725\" \/><\/a>Hotlinking is a way in which someone would directly link to your website hosted Image &amp; Video Files because of which the you need to pay high bandwidth bills. This is the very reason its really important to make sure that you can stop hot-linking and make sure that other website owners don&#8217;t steal your bandwidth. You can easily detect this stuff when you use tools like tynt or when you check out your website&#8217;s statistics log through Awstats. Normally when you add a Image in your website or blog, it would be added in the <a href=\"https:\/\/www.amitbhawani.com\/blog\/how-to-add-photos-images-web-page-html-tutorial\/\">following way<\/a>.<\/p>\n<p><code>&lt;img src=&quot;imagename.jpg&quot; height=&quot;500&quot; width=&quot;300&quot;&gt;<\/code><\/p>\n<p>But when the Image is Hot Linked by someone else, then the code would be changed and when you view on the source code you will find it as below listed.<\/p>\n<p><code>&lt;img src=&quot;http:\/\/www.amitbhawani.com\/imagename.jpg&quot; height=&quot;500&quot; width=&quot;300&quot;&gt;<\/code><\/p>\n<p>You can easily point out the difference, which means that the bandwidth stealer is going to directly put your website image URL for showing the Image on his website. Hence, whenever his website is accessed and loaded, your website Image is loaded, hence increasing your Broadband Bills. Few regularly seen situations where we find out Images Stole are on Auction Websites like ebay, Classified Websites and Webmaster Forums in most cases of these the content is posted by guests and visitors. This is something which everyone should avoid and if they are not interested in hosting the Images on their server, then its recommended that they should be using different free Image Hosting services.<\/p>\n<p>Next we need to find out different ways which can stop our Images from being HotLinked. Here are few of them :<\/p>\n<p>The stealer&#8217;s would normally right click on the Image and Copy Image Location and then Embed the same on their websites. This is one of most easiest way of copying someones Image and using them. In order to stop people from opting this way, its recommended to Disable Right Click option on your Blogs or websites using plugins or Javascripts. This can not only Disable Right Function but would also make sure that others cannot copy your content too.<\/p>\n<p><strong>Using .htaccess to Stop HotLinking &#038; Bandwidth Theft :<\/strong> Next way would be by Implementing .htaccess Tricks which would show some other Image on the Target Website whenever they would HotLink your Images. This can be easily done and using some Pranks or Funny Messages on the Images you can even build in some Backlinks to your website when others would find this out. <\/p>\n<p>If my site url is www.amitbhawani.com and i want to make sure that someone is not able to steal my Images i would have to create a new Image name which would be dislayed on the stealers website. Hence if the Original Image is myimagename.jpe, you can name the to be shown Image as funnyimage.jpe and then add the following code in your .htaccess file which is normally located on your website&#8217;s or blog&#8217;s root folder.<\/p>\n<p><code>RewriteEngine On<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/(. \\.)?amitbhawani\\.com\/ [NC]<br \/>\nRewriteCond %{HTTP_REFERER} !^$<br \/>\nRewriteRule .*\\.(jpe?g|gif|bmp|png)$ \/funnyimage.jpe [L]<\/code><\/p>\n<p>The first line of the code would start with the rewrite function and the second line would define your own domain name which can be considered under the While List. Next is the going to allow empty referrals, following which is the line which would show the Image as a replacement of the original file. In case you dont want to show any replacement Image and just show a error to save 100% of your bandwidth, then its recommended to show a 403 Forbidden error by using the following code in your .htaccess file.<\/p>\n<p>RewriteRule .*\\.(jpe?g|gif|bmp|png)$ &#8211; [F]<\/p>\n<p>That&#8217;s it the above listed process can make sure that you can show a Replacement Image instead of the Original Images when someone steals them and uses them on their websites. Let us know if you find any issues in implementing this. Following is one interesting way of stopping Image HotLinking where in the Original Image owner edited and added some funny text to the Image as shown below. [<a target=\"_blank\" rel=\"nofollow\" href=\"http:\/\/www.cockeyed.com\/pranks\/imposter\/imposter.html\">Source<\/a>]<br \/>\n<figure id=\"attachment_7727\" aria-describedby=\"caption-attachment-7727\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Steal-Image-Hotlinking.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Steal-Image-Hotlinking-300x196.jpg?resize=300%2C196\" alt=\"Steal Image Hotlinking\" title=\"Steal Image Hotlinking\" width=\"300\" height=\"196\" class=\"size-medium wp-image-7727\" srcset=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Steal-Image-Hotlinking.jpg?resize=300%2C196&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Steal-Image-Hotlinking.jpg?resize=150%2C98&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Steal-Image-Hotlinking.jpg?w=687&amp;ssl=1 687w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7727\" class=\"wp-caption-text\">Steal Image Hotlinking<\/figcaption><\/figure><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hotlinking is a way in which someone would directly link to your website hosted Image &amp; Video Files because of which the you need to pay high bandwidth bills. This is the very reason its really important to make sure that you can stop hot-linking and make sure that other website owners don&#8217;t steal your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18497,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1310],"tags":[],"class_list":{"0":"post-7722","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-guides","8":"entry"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Image-Hotlinking-150x150.jpg?fit=150%2C150&ssl=1","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9190,"url":"https:\/\/www.amitbhawani.com\/blog\/bandwidth-usage-netflow\/","url_meta":{"origin":7722,"position":0},"title":"Monitor Network Traffic with NetFlow Analyzer","author":"Tony Stark","date":"March 13, 2010","format":false,"excerpt":"We had recently covered a useful software called as Netstat for monitoring Internet Bandwidth Usage, while here is a much more better application which can help you in monitoring the bandwidth usage, analyzing the network traffic and also making sure that you get the maximum bandwidth performance. There are more\u2026","rel":"","context":"In &quot;Software Reviews&quot;","block_context":{"text":"Software Reviews","link":"https:\/\/www.amitbhawani.com\/blog\/category\/software\/"},"img":{"alt_text":"netflow analyzer professional","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/03\/netflow-analyzer-professional-300x239.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":366,"url":"https:\/\/www.amitbhawani.com\/blog\/bsnl-broadband-services-home-packages-tariff\/","url_meta":{"origin":7722,"position":1},"title":"BSNL Broadband Services Home Packages &#038; Tariff","author":"Amit Bhawani","date":"March 1, 2008","format":false,"excerpt":"BSNL[Bharat Sanchar Nigam Limited] is India's number one telecommunications company offering many services related to telecom and we are going to review their broadband packages and tariff and user reviews. There are 2 major types of services : Home & Business Plans which are suited to the customers based on\u2026","rel":"","context":"In &quot;Broadband Services&quot;","block_context":{"text":"Broadband Services","link":"https:\/\/www.amitbhawani.com\/blog\/category\/broadband\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11329,"url":"https:\/\/www.amitbhawani.com\/blog\/youtube-streaming-videos-bandwidth-usage\/","url_meta":{"origin":7722,"position":2},"title":"How Much Bandwidth usage do Youtube Streaming videos take","author":"Amit Bhawani","date":"June 9, 2010","format":false,"excerpt":"I use a USB Data Card for accessing the Internet on my Laptop and the share computer is used as a WiFi Hotspot to Share the Internet Connection with my Apple iPad. While using the iPad most of the time i use the Youtube App to view different videos. Now\u2026","rel":"","context":"In &quot;Ultimate Guides&quot;","block_context":{"text":"Ultimate Guides","link":"https:\/\/www.amitbhawani.com\/blog\/category\/guides\/"},"img":{"alt_text":"Youtube Logo","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":692,"url":"https:\/\/www.amitbhawani.com\/blog\/broadband-speed-test-tools-meters-broadband-terminology\/","url_meta":{"origin":7722,"position":3},"title":"15 Broadband Speed Test Tools Broadband Terminology","author":"Amit Bhawani","date":"July 6, 2008","format":false,"excerpt":"Here are some of the Broadband Speed Terms which can help you out in understand more about broadband related terms : QOS : Its the level of consistency in your download capacity by the broadband service provider. If the percentage of QOS is high you can expect a better quality\u2026","rel":"","context":"In &quot;Top Lists&quot;","block_context":{"text":"Top Lists","link":"https:\/\/www.amitbhawani.com\/blog\/category\/top-lists\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3447,"url":"https:\/\/www.amitbhawani.com\/blog\/check-internet-speed-test\/","url_meta":{"origin":7722,"position":4},"title":"Check Internet Speed Test to measure Internet connection bandwidth","author":"Amit Bhawani","date":"February 26, 2009","format":false,"excerpt":"If you are looking for checking your broadband speed to make sure that your ISP is not cheating with you and over billing you with high speed charges and offering you a very low internet speed, then its time you can measure the download and upload speed using a downloadable\u2026","rel":"","context":"In &quot;Tips &amp; Tweaks&quot;","block_context":{"text":"Tips &amp; Tweaks","link":"https:\/\/www.amitbhawani.com\/blog\/category\/tips-tweaks\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Test-Internet-Connection-Speed.png?fit=543%2C437&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Test-Internet-Connection-Speed.png?fit=543%2C437&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Test-Internet-Connection-Speed.png?fit=543%2C437&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":14040,"url":"https:\/\/www.amitbhawani.com\/blog\/email-upload-videos-mobile-phone-youtube\/","url_meta":{"origin":7722,"position":5},"title":"How to Email Upload Videos from Mobile Phone to Youtube","author":"Amit Bhawani","date":"September 10, 2010","format":false,"excerpt":"Most SmartPhones now have a Video Recording capability giving everyone a option to not just take photos but also record beautiful videos which can later be easily shared with others. Now lets say you are out of your city with your SmartPhone like Apple iPhone or Samsung Galaxy S and\u2026","rel":"","context":"In &quot;How to Guide&quot;","block_context":{"text":"How to Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/how-to\/"},"img":{"alt_text":"Youtube Mobile Upload Email","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/09\/Youtube-Mobile-Upload-Email.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/7722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/comments?post=7722"}],"version-history":[{"count":0,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/7722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media\/18497"}],"wp:attachment":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media?parent=7722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/categories?post=7722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/tags?post=7722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}