Skip to contents

This function performs no request and no DNS lookup. Pass IP addresses from the executor's resolver and every redirect target so policy is rechecked at the same boundary that will connect to the destination.

Usage

scan_url_target(
  url,
  policy = url_policy(allowed_schemes = c("http", "https")),
  resolved_ips = NULL,
  redirect_chain = character(),
  show_stats = FALSE
)

Arguments

url

Requested URL.

policy

Policy from url_policy().

resolved_ips

Optional IP addresses returned by the executor's DNS resolver.

redirect_chain

Optional redirect target URLs in observed order.

show_stats

Show execution statistics as messages.

Value

A shieldr_report.

Examples

scan_url_target("https://example.com")
#> llmshieldr report
#> action: allow
#> risk_score: 0.000
#> findings: 0
scan_url_target("http://127.0.0.1/admin")$action
#> [1] "block"