Skip to main content
When you scan a URL that redirects to another location, the scanner has to decide which URL to actually test. The “Follow redirects” setting controls this: whether the scanner follows the redirect and tests the destination, or stays on the original URL you entered. This is a target validation step. It runs before scanning starts, not during the scan itself. The platform checks whether the target URL redirects, validates whether the destination is within the configured scope, and updates the scan target accordingly. The default is Same-domain only, which covers the most common redirect patterns: HTTP to HTTPS upgrades and bare domain to www redirects.

Supported tools

The follow redirects option is available for any tool that accepts a URL as a target.
When you configure authentication for a tool, redirect following is disabled automatically. The scanner tests the original URL to avoid redirect loops with login pages.

Options

The default is Same-domain only (same_domain).

How it works

Before a scan starts, the platform checks whether the target URL redirects. Based on the result:
  • Redirect within scope: the scan target is updated to the redirected URL and the scan proceeds normally
  • Redirect out of scope: the scan is rejected with an error
  • No redirect: the scan runs against the original URL

Redirect types

The levels are cumulative. Same-domain only covers everything Same-host only covers, and adds subdomain changes. Always follows any redirect.

When to use each option

Never. Use when you want to test the exact URL you entered, regardless of where it redirects. Good for testing redirect behavior itself, or when the redirect destination is outside your engagement scope. Same-host only. Use when the target may redirect between HTTP and HTTPS or to a different path on the same server, but you want to stay strictly on the same hostname. Same-domain only is the right choice for most scans. It handles HTTP to HTTPS upgrades and www-prefixed redirects without risking unintended scope expansion. Always. Use when you have explicit authorization to test the redirect destination and know it may be on a different domain.
Always follows redirects to any domain. Only use this when your scope explicitly covers the redirect destination.

API

Use the redirect_level parameter when starting scans via the API. The default is same_domain. Valid values: none, same_host, same_domain, allow_all.

Troubleshooting

If a scan fails because the target URL redirects to an out-of-scope destination, the Follow redirects setting is too restrictive for the redirect the target performs.Increase the Follow redirects level to cover the redirect type:Only use Always if your engagement scope explicitly covers the redirect destination.