def _domain_differs(self, href):
        """ Check that a link is not on the same domain as the source URL """
        target = utils.get_domain(href)
        if not target:
            return False

        origin = utils.get_domain(self.url)
        return target != origin
Check that a link is not on the same domain as the source URL