'Check if the reference is inside the target directories.
:return: True if reference is an URL inside the directory structure of
at least one of the target URLs.'

def _is_forward(self, reference):

    for domain_path in self._target_urls:
        if reference.url_string.startswith(domain_path.url_string):
            return True
    return False
