Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Timeout when doing HEAD requests.

Stevebffafc7b34f5
diff --git a/sflib.py b/sflib.py
index 15bd6908..a11ef358 100644
--- a/sflib.py
+++ b/sflib.py
@@ -984,7 +984,7 @@ class SpiderFoot:
" [user-agent: " + header['User-Agent'] + "] [timeout: " + \
str(timeout) + "]")
- hdr = requests.head(url, headers=header, verify=False)
+ hdr = requests.head(url, headers=header, verify=False, timeout=timeout)
size = int(hdr.headers.get('content-length', 0))
result['realurl'] = hdr.headers.get('location', url)
result['code'] = str(hdr.status_code)