<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.connicus.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Terry Thibodeau's Blog : .NET, tools</title><link>http://www.connicus.com/archive/tags/.NET/tools/default.aspx</link><description>Tags: .NET, tools</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>Bandwidth leeching</title><link>http://www.connicus.com/archive/2007/12/20/bandwidth-leeching.aspx</link><pubDate>Thu, 20 Dec 2007 16:04:00 GMT</pubDate><guid isPermaLink="false">676f6b53-914a-4440-92e2-68dcb69a897b:76</guid><dc:creator>Terry Thibodeau</dc:creator><slash:comments>3</slash:comments><comments>http://www.connicus.com/comments/76.aspx</comments><wfw:commentRss>http://www.connicus.com/commentrss.aspx?PostID=76</wfw:commentRss><description>&lt;P&gt;When I decided to start blogging, I never thought I'd have to worry about things like &lt;A class="" title="Bandwidth Leeching" href="http://en.wikipedia.org/wiki/Bandwidth_theft" target=_blank&gt;bandwidth leeching&lt;/A&gt;. But while checking out my traffic stats the other day, I came across &lt;A class="" href="http://alexontech.blogspot.com/2007/08/webtop-web-based-operating-system-or.html" target=_blank&gt;this referring link&lt;/A&gt; that had a &lt;A class="" href="http://www.connicus.com/archive/2007/03/14/thank-you-wpf-thirteen23.aspx" target=_blank&gt;very familiar image on it&lt;/A&gt;:&lt;/P&gt;
&lt;DIV class=floatLeft&gt;&lt;IMG title="Leech before" alt=Before src="http://www.connicus.com/images/blog/2007.12.20/leechbefore.png"&gt; 
&lt;DIV class=imageComment&gt;*original* content in screenshot is from &lt;A class="" href="http://alexontech.blogspot.com/2007/08/webtop-web-based-operating-system-or.html" target=_blank&gt;this site&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I choose to license all content on my blog under &lt;A class="" title="Creative Commons" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target=_blank&gt;creative commons&lt;/A&gt;, which means you can feel free to re-publish anything you like from my site, &lt;U&gt;with credit to the original author&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;I'm not upset about the fact that my beautifully prepared image is being hosted on someone else's site. I'm upset that there was no credit given for my &lt;EM&gt;mad Photoshop skillz&lt;/EM&gt; and that this person didn't even bother to host the image file on his own server! Why is this bad? Well, instead of using his own bandwidth, he is&amp;nbsp;choosing to let people download this image from my site directly, allowing me to incur the bandwith cost. &lt;/P&gt;
&lt;P&gt;This may be a case of "I didn't realize this was bad". If so, that's fine. I will gladly allow my image to be reused (with credit) as long as the image is hosted from your own server.&lt;/P&gt;
&lt;P class=clearIt&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=floatRight&gt;&lt;IMG title="Leech after" alt=After src="http://www.connicus.com/images/blog/2007.12.20/leechafter.png"&gt; 
&lt;DIV class=imageComment&gt;LeechGuard in action&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;How can you prevent bandwidth leeching?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There are quite a few tools out there that you can purchase to prevent "hot-linking". However, since I love FREE tools, I will point you&amp;nbsp;to the awesome, FREE utility by &lt;A class="" title="Mike Volodarsky" href="http://mvolo.com/" target=_blank&gt;Mike Volodarsky&lt;/A&gt;, Program Manager on Microsoft’s IIS team: &lt;A href="http://mvolo.com/blogs/serverside/archive/2006/11/10/Stopping-hot_2D00_linking-with-IIS-and-ASP.NET.aspx"&gt;LeechGuard&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;LeechGuard is a custom HttpModule that handles&amp;nbsp;requests for&amp;nbsp;the resource&amp;nbsp;types that you specify in the web.config (gif, jpg, etc.). If a request for a file is made (Nostalgia.png, in this case) and the extension matches the configured types, LeechGuard can redirect to a different image or return an HTTP error code (example: 403 - Access denied) if the referring URL was not your own site.&lt;/P&gt;
&lt;P&gt;There is a small performance hit by funnelling every IIS request through the ASP.NET ISAPI filter (the preferred method of configuration), but it's a small price to pay to know that your bandwidth is YOUR bandwidth. :)&lt;/P&gt;&lt;img src="http://www.connicus.com/aggbug.aspx?PostID=76" width="1" height="1"&gt;</description><category domain="http://www.connicus.com/archive/tags/.NET/default.aspx">.NET</category><category domain="http://www.connicus.com/archive/tags/tools/default.aspx">tools</category></item></channel></rss>