<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pixelbath &#187; msn</title>
	<atom:link href="http://www.pixelbath.com/blog/tag/msn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelbath.com/blog</link>
	<description>Webcomics, video, Photoshop and other design-related stuff</description>
	<lastBuildDate>Fri, 10 Jun 2011 16:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Block Windows Live Messenger Ads</title>
		<link>http://www.pixelbath.com/blog/2009/01/block-windows-live-messenger-ads/</link>
		<comments>http://www.pixelbath.com/blog/2009/01/block-windows-live-messenger-ads/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 17:59:06 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ad]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[messenger]]></category>
		<category><![CDATA[msn]]></category>

		<guid isPermaLink="false">http://www.pixelbath.com/blog/?p=222</guid>
		<description><![CDATA[Earlier, we learned how to block ads at the OS level. Blocking ads through the browser is awesome, but advertising these days is all about making inroads to the desktop. Even though Microsoft claims that their business is software, Live Messenger seems to be an ad vehicle. I quickly became tired of video ads constantly [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_229" class="wp-caption alignright" style="width: 296px"><img src="http://www.pixelbath.com/blog/wp-content/uploads/live-messenger-ad-removal.jpg" alt="All your ads are belong to us" title="live-messenger-ad-removal" width="286" height="500" class="size-full wp-image-229" />
<p class="wp-caption-text">All your ads are belong to us</p>
</div>
<p>Earlier, we learned <a href="http://www.pixelbath.com/blog/2009/01/host-based-ad-blocking/">how to block ads at the OS level</a>. Blocking ads through the browser is awesome, but advertising these days is all about making inroads to the desktop. Even though Microsoft claims that their business is software, Live Messenger seems to be an ad vehicle. I quickly became tired of video ads constantly showing up in Live Messenger (especially those insipid Tru dating site ads) that would play as soon as the cursor went over them, so I resolved to do something about it. I fired up <a href="http://www.fiddlertool.com/">Fiddler</a>, a proxy that allows you to view HTTP traffic. I saw several random requests for rad.msn.com, and upon further examination saw that it was serving ad content, which depending on the content type, would be handled appropriately by Live Messenger's ad box.</p>
<p>I added rad.msn.com to my hosts file, and the ads were now blocked. Since there was now a blank box, I decided to go a step further and replace the image. I tried this before with a program that patched the ad out of the executable, but this isn't a long-term solution, since any software update will require waiting on a new version of the patcher, and a subsequent re-patching. If I just serve a different image up, it's fairly future-proof because Messenger is one the wiser. No matter what subdirectory or file is being requested by Messenger, this script will always throw back the custom image.</p>
<p>Using the index.php file we ended up with on our l<a href="http://www.pixelbath.com/blog/2009/01/host-based-ad-blocking/">ast ad-blocking adventure</a>, we will add the following before the html is sent to the browser:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="co1">// if it's live messenger, spit out an image and exit</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$host</span> == 'rad.msn.com'<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$filename</span> = 'false-ad.jpg';<br />
<span class="kw1">if</span> <span class="br0">&#40;</span><a href="http://www.php.net/file_exists"><span class="kw3">file_exists</span></a><span class="br0">&#40;</span><span class="re0">$filename</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$handle</span> = <a href="http://www.php.net/fopen"><span class="kw3">fopen</span></a><span class="br0">&#40;</span><span class="re0">$filename</span>, <span class="st0">"r"</span><span class="br0">&#41;</span>;<br />
<span class="re0">$contents</span> = <a href="http://www.php.net/fread"><span class="kw3">fread</span></a><span class="br0">&#40;</span><span class="re0">$handle</span>, <a href="http://www.php.net/filesize"><span class="kw3">filesize</span></a><span class="br0">&#40;</span><span class="re0">$filename</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">"Content-type: image/jpeg"</span><span class="br0">&#41;</span>;<br />
<span class="kw1">echo</span> <span class="re0">$contents</span>;<br />
<span class="br0">&#125;</span><br />
<a href="http://www.php.net/exit"><span class="kw3">exit</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p>The exit() is added so we can bail out early after serving my custom image, and not serve up the normal adblock page (that I see in my browsers). The image size for the Live Messenger ad is 231x60 pixels.</p>
<p>I opted for an image that would blend in with the skin I use for Live Messenger, but wasn't just a "blank space here" image. The skin shown is <a href="http://www.msgpluslive.net/skins/view/96-Oil-Slick/">Oil Slick</a> for <a href="http://www.msgpluslive.net/">Messenger Plus! Live</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbath.com/blog/2009/01/block-windows-live-messenger-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSN (Windows Live) Avatar Icon Size</title>
		<link>http://www.pixelbath.com/blog/2008/12/msn-avatar-icon-size/</link>
		<comments>http://www.pixelbath.com/blog/2008/12/msn-avatar-icon-size/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 19:46:16 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[msn]]></category>

		<guid isPermaLink="false">http://www.pixelbath.com/blog/?p=196</guid>
		<description><![CDATA[...is 96x96 pixels. Sometimes I really hate when basic information is hard to find.]]></description>
			<content:encoded><![CDATA[<p>...is 96x96 pixels.</p>
<p>Sometimes I really hate when basic information is hard to find.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbath.com/blog/2008/12/msn-avatar-icon-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

