Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

chore: add a note about hostname allowlists in the validation error message

Mohamed Bassem1af9b9ddf69c
diff --git a/apps/workers/network.ts b/apps/workers/network.ts
index 0dc46da4..4bc30562 100644
--- a/apps/workers/network.ts
+++ b/apps/workers/network.ts
@@ -163,7 +163,7 @@ export async function validateUrl(
if (isAddressForbidden(hostname)) {
return {
ok: false,
- reason: `Refusing to access disallowed IP address ${hostname} (requested via ${parsedUrl.toString()})`,
+ reason: `Refusing to access disallowed IP address ${hostname} (requested via ${parsedUrl.toString()}). You can use CRAWLER_ALLOWED_INTERNAL_HOSTNAMES to allowlist specific hostnames for internal access.`,
} as const;
}
return { ok: true, url: parsedUrl } as const;