Skip to content

Redirects audit rules

View as Markdown

Sonjoo groups 11 checks under Redirects (redirect). Select this category with sonjoo audit <url> --categories redirect, or pass the category ID in an HTTP audit request.

This category has weight 3 in the overall audit score when it has scored results. Sonjoo normalizes category weights over the categories with scored results.

All audit categories · Rule settings and interpretation

Detect HTML refresh navigation and distinguish immediate from delayed redirects.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Duration and declared target.

Base scoring weight 15 when measured.

Identify likely inline JavaScript navigation while allowing simple reads of the window location.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Matched static patterns and number of inspected inline scripts.

Base scoring weight 12 when measured.

Identify navigation requested through the HTTP Refresh response header.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Original Refresh value, delay and target.

Base scoring weight 10 when measured.

Identify a repeated destination in a collected page redirect trace. Emit a finding for a loop discovered during a normal crawl while preserving the transport error and incomplete page coverage.

Inputs. The HTTP transport has a recorded redirect trace.

Evidence. Trace length and the repeated destinations.

Base scoring weight 15 when measured.

Distinguish temporary redirect status codes from permanent moves based on real observed hops.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Ordered statuses and permanent/temporary classification.

Base scoring weight 12 when measured.

Find redirect chains which end at an HTTP 4xx or 5xx response.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Final status code, chain length and failed destination.

Base scoring weight 15 when measured.

Flag HTTP resource references embedded in an HTTPS document.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Resource types and URLs.

Base scoring weight 10 when measured.

Report a canonical differing from the current URL only in ASCII letters of the path. Ignore equivalent percent-escape spelling.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Current and declared canonical URLs.

Base scoring weight 8 when measured.

A redirected browser resource fails when its final HTTP response is 4xx or 5xx.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Matching browser resource URL, type, redirect count and outcome.

Base scoring weight 12 when measured. Requires Chromium rendering.

Fail when the browser resource trace revisits a prior URL.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Matching browser resource URL, type, redirect count and outcome.

Base scoring weight 12 when measured. Requires Chromium rendering.

Warn when a successfully captured browser asset uses at least two redirect hops.

Inputs. The source response, observed redirect chain or rendered navigation evidence is available, depending on the rule.

Evidence. Matching browser resource URL, type, redirect count and outcome.

Base scoring weight 8 when measured. Requires Chromium rendering.