Skip to main content

refuseUrl

@forge/monorepo


@forge/monorepo / backend/src / refuseUrl

Function: refuseUrl()

refuseUrl(url): Refusal

Defined in: backend/src/toolkit/ssrf.ts:147

Refuses a URL on its face, before any resolution.

Scheme and shape only. A hostname that merely looks fine still has to survive resolution, which is the next function — this one exists so an obviously bad URL costs no DNS query and gives a specific message.

Parameters

url

URL

Returns

Refusal