Improved algo for matching the host names
to determine internal & external links.