> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# hosting-redirect-external-wildcard

> A vercel.json, netlify.toml or _redirects redirect takes its destination host from the request path (open redirect).

## What it flags

A redirect in `vercel.json` (`redirects`), `netlify.toml` (`[[redirects]]` with a 3xx or default status) or a `_redirects` file whose destination is an absolute URL with a host that ends in a request parameter: `https://:target`, `https://:splat`, `https://:path*`. A crafted link on your domain then sends visitors to any site, which phishing pages use to borrow your domain's reputation. [OWASP: Unvalidated redirects](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)

Not reported: a fixed host with a dynamic path (`https://docs.example.com/:path*`), a parameter inside a fixed domain (`https://:sub.example.com`), parameters in the port, relative destinations, and Netlify `200` rewrites and proxies.

```json theme={null}
{ "source": "/docs/:path*", "destination": "https://docs.example.com/:path*" }
```

No automatic fix: a human decides.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "hosting-redirect-external-wildcard": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.