mirror of
https://github.com/simon987/od-database.git
synced 2025-12-19 17:44:52 +00:00
Added filter to check if a website can be scanned from its parent directory
This commit is contained in:
@@ -105,6 +105,7 @@ class HttpDirectory(RemoteDirectory):
|
||||
path_url = urljoin(self.base_url, path, "")
|
||||
body = self._stream_body(path_url)
|
||||
if not body:
|
||||
logger.info("No body returned @ " + path_url)
|
||||
return None, None
|
||||
anchors = self._parse_links(body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user