<div>I don&#39;t know the answer to your question, but it seems easy enough to find out:</div><div><br></div><div>(Windows XP SP3)</div><div><br></div><div><div>C:\&gt;ping <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a></div>
<div>Ping request could not find host <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a>. Please check the name and try again.</div><div>C:\&gt;echo 127.0.0.1 *.<a href="http://hhjjhhjjhh.com">hhjjhhjjhh.com</a> &gt; c:\windows\system32\drivers\etc\hosts</div>
<div>C:\&gt;ping <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a></div><div>Ping request could not find host <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a>. Please check the name and try again.</div>
<div>C:\&gt;echo 127.0.0.1 <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a> &gt;&gt; c:\windows\system32\drivers\etc\hosts</div><div>C:\&gt;ping <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a></div><div>
Pinging <a href="http://foo.hhjjhhjjhh.com">foo.hhjjhhjjhh.com</a> [127.0.0.1] with 32 bytes of data:</div><div>Reply from <a href="http://127.0.0.1">127.0.0.1</a>: bytes=32 time&lt;1ms TTL=128</div><div>...</div><div><br>
</div><div>I&#39;ll leave it as an exercise to you to test the same on Linux.</div><div><br></div><div>BTW, why are you blocking Amazon S3?</div><div><br></div><div>Sean</div><div><br></div><div>On Sat, Aug 7, 2010 at 1:04 PM, Mike Pfaiffer <span dir="ltr">&lt;<a href="mailto:high.res.mike@gmail.com">high.res.mike@gmail.com</a>&gt;</span> wrote:</div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">        At the lab the teacher advocates using the Windows equivalent of the<br>
/etc/hosts file to prevent access to certain sites from classroom<br>
computers. He and I have been having an ongoing chat about this for a<br>
few months. I&#39;ve been reading up on the way the file is used to redirect<br>
requests to a different address (eg. 127.0.0.1). Is there a difference<br>
in the way Windows parses the file compared to Linux?<br>
<br>
        One reason for the above question is I was thinking it might be useful<br>
to redirect requests to advertising sites to 127.0.0.1 to speed up<br>
access on days when things seem to crawl. One article I read on Digg<br>
suggested a lot of the wait time for web pages was due to slow and<br>
misconfigured ad servers. I found one site which has example files which<br>
are updated so often. I tried one and I got almost nothing when surfing<br>
the web. Using the file as a pattern I created a smaller version which<br>
works well with the chromium browser but fails to display text in firefox.<br>
<br>
        These are the lines I&#39;ve added. Yes I know there are duplicates.<br>
<br>
127.0.0.1       <a href="http://media.fastclick.com" target="_blank">media.fastclick.com</a> <a href="http://media.fastclick.net" target="_blank">media.fastclick.net</a><br>
127.0.0.1       *.<a href="http://tribalfusion.com" target="_blank">tribalfusion.com</a> <a href="http://a.tribalfusion.com" target="_blank">a.tribalfusion.com</a><br>
127.0.0.1       <a href="http://cdn.optmd.com" target="_blank">cdn.optmd.com</a><br>
127.0.0.1       <a href="http://ad.doubleclick.com" target="_blank">ad.doubleclick.com</a> <a href="http://ad.doubleclick.net" target="_blank">ad.doubleclick.net</a> *<a href="http://doubleclick.net" target="_blank">doubleclick.net</a><br>

<a href="http://googleads.g.doubleclick.net" target="_blank">googleads.g.doubleclick.net</a><br>
127.0.0.1       <a href="http://as.casalemedia.com" target="_blank">as.casalemedia.com</a><br>
127.0.0.1       <a href="http://ads.adsonar.com" target="_blank">ads.adsonar.com</a><br>
127.0.0.1       <a href="http://seeker.dice.com" target="_blank">seeker.dice.com</a><br>
127.0.0.1       <a href="http://townhall.com" target="_blank">townhall.com</a><br>
127.0.0.1       <a href="http://s3.amazonaws.com" target="_blank">s3.amazonaws.com</a><br>
127.0.0.1       <a href="http://pixel.quantserv.com" target="_blank">pixel.quantserv.com</a><br>
127.0.0.1       <a href="http://st.blogads.com" target="_blank">st.blogads.com</a><br>
127.0.0.1       *.<a href="http://rackspacecloud.com" target="_blank">rackspacecloud.com</a><br>
127.0.0.1       <a href="http://js.adsonar.com" target="_blank">js.adsonar.com</a><br>
127.0.0.1       <a href="http://ads.pointroll.com" target="_blank">ads.pointroll.com</a><br>
<br>
        Would the &quot;*&quot; in the domain name cause problems? Like I said, I used<br>
the Windows file as an example.<br>
<br>
                                Later<br>
                                Mike<br>
<br>
_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sean Walberg &lt;<a href="mailto:sean@ertw.com">sean@ertw.com</a>&gt;    <a href="http://ertw.com/">http://ertw.com/</a><br>
</div>