Host detection for deciding whether to open link in browser