Skip to content

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

sflib: Don't report links ending in #.

smicallef8ded7af5af9c
diff --git a/sflib.py b/sflib.py
index b74f41be..f11bd66c 100644
--- a/sflib.py
+++ b/sflib.py
@@ -1917,7 +1917,7 @@ class SpiderFoot:
# Don't include stuff likely part of some dynamically built incomplete
# URL found in Javascript code (character is part of some logic)
- if link[len(link) - 1] == '.' or link[0] == '+' or 'javascript:' in linkl or '()' in link:
+ if link[len(link) - 1] in ['.', '#'] or link[0] == '+' or 'javascript:' in linkl or '()' in link:
self.debug('unlikely link: ' + link)
continue