aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-05-29 14:04:51 +0700
committerShulhan <ms@kilabit.info>2025-05-29 14:04:51 +0700
commitb0c320e436ff5cdc70ad38a980a2af2a7f3e5dfd (patch)
treed7fb2016f426d51b72d506f22345634300528fdf /testdata
parent3d39941514395137610fb1c58768814a390b7c35 (diff)
downloadjarink-b0c320e436ff5cdc70ad38a980a2af2a7f3e5dfd.tar.xz
all: ignore HTML page from external domain
Any HTML link that is from domain other than the scanned domain should net get parsed. It only check if the link is valid or not.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/web/index.html1
-rw-r--r--testdata/web/page2/index.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/testdata/web/index.html b/testdata/web/index.html
index e4d8bd0..f4f86d8 100644
--- a/testdata/web/index.html
+++ b/testdata/web/index.html
@@ -9,5 +9,6 @@ SPDX-License-Identifier: GPL-3.0-only
<img src="/gopher.png" />
<a href="/page2">Page 2</a>
<a href="/broken.html">Broken HTML</a>
+ <a href="http://127.0.0.1:11900">External URL</a>
</body>
</html>
diff --git a/testdata/web/page2/index.html b/testdata/web/page2/index.html
index 0fc7601..ae6b4ea 100644
--- a/testdata/web/page2/index.html
+++ b/testdata/web/page2/index.html
@@ -9,5 +9,6 @@ SPDX-License-Identifier: GPL-3.0-only
<a href="broken/relative">broken relative link</a>
<a href="/">Back with absolute path</a>
<a href="../">Back with relative path</a>
+ <a href="http://127.0.0.1:11900/page2">External URL page2</a>
</body>
</html>