Skip to content

Incredibly fast crawler designed for OSINT.

don't index javascript URIs and URL fragments

Somdev Sangwanc960849499bc
diff --git a/core/utils.py b/core/utils.py
index c6b5aa3..905d390 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -38,6 +38,8 @@ def is_link(url, processed, files):
bool If `url` should be crawled
"""
if url not in processed:
+ if url.startswith('#') or url.startswith('javascript:'):
+ return False
is_file = url.endswith(BAD_TYPES)
if is_file:
files.add(url)