There is another - and more simplified - version of Google favicons service:<p><a href="http://s2.googleusercontent.com/s2/favicons?domain_url=" rel="nofollow">http://s2.googleusercontent.com/s2/favicons?domain_url=</a><p>You can also pass a full URL to domain_url parameter, e.g.:<p><a href="http://s2.googleusercontent.com/s2/favicons?domain_url=http%3A%2F%2Fnews.ycombinator.com%2Fitem%3Fid%3D4028603" rel="nofollow">http://s2.googleusercontent.com/s2/favicons?domain_url=http%...</a><p>So no need to find the host name, just be sure to encode the URL<p>It also works with HTTPS connection.