Cyber Security SpaceCYBERSECURITYSPACE.NET
Community
Community HubEventsNewsletterSubmit a Tool
Careers
JobsCareer GuidesFor ProfessionalsCertifications
Learn
Learning PathsEducationGuidesGlossaryTools
News & Threats
NewsBlogThreat LibraryCrypto Security
Small Business
Security CheckupSecurity GuidesComplianceIncident ResponseSecurity Monitor
Join the community
Cyber Security Space

A community for cybersecurity professionals and enthusiasts: careers, learning, and people to learn with. Practical guidance for small businesses too.

Small Business

  • Security Checkup
  • Security Checklist
  • Security Guides
  • Templates
  • Security Tools

Security

  • Website Security
  • Incident Response
  • Compliance
  • Threat Library
  • Crypto Security

Resources

  • Resources
  • News
  • Blog
  • Glossary
  • Jobs
  • Learning

Company

  • About
  • Sources
  • Contact
  • Privacy Policy
  • Terms
  • Disclaimer
  • Editorial Policy
© 2026 Cyber Security Spacecybersecurityspace.net

Tools

Redirect Scanner

Follows the full redirect chain for a URL across desktop, mobile and search-referrer conditions, so conditional redirects surface.

Published 19 Jul 2026 · Updated 22 Aug 2026 · 3 min read

Short answer

The Redirect Scanner requests a URL under several visitor profiles — desktop, mobile and arriving from search — follows every hop, and reports the full chain with status codes, which is how conditional malicious redirects are exposed.

Why test multiple visitor profiles?

Injected redirect code branches on user agent, referrer and cookies, and often fires once per visitor. Testing one profile from one session is the most common reason a compromised site is declared clean.

Status: in development. The curl commands in the malicious redirect profile reproduce the same chain capture today.

How do you read a redirect chain?

PatternLikely cause
301 to an unrelated domain on mobile onlyInjected code branching on user agent
302 only when the referrer is a search engineReferrer-gated payload
Long chain through several unfamiliar hostsTraffic distribution system, typical of malvertising
Redirect appears once then stopsSuppression cookie set on first visit

Who should use this scanner?

  • Owners receiving reports that visitors — often only mobile visitors — land somewhere unexpected, while the site looks fine to them.
  • Teams migrating domains or restructuring URLs who need to confirm the intended redirect map and nothing more.
  • Anyone who has been told their site redirects to spam but cannot reproduce it from their own desk.
  • Publishers auditing third-party ad or tag scripts suspected of triggering redirects.

Why do conditional redirects matter?

A conditional redirect monetises your organic traffic while leaving your own experience untouched, which is why it survives so long. The visitor never reaches your page, so the loss shows up as falling engagement and conversions rather than as an obvious defacement, and the owner's own tests keep coming back clean.

  • Search: Google may classify the URL as hacked content and remove it from results.
  • Revenue: organic sessions are diverted before they reach a product or lead form.
  • Reputation: destinations are commonly counterfeit stores, fake update prompts or malware droppers.
  • Diagnosis: rotating intermediate hops make the destination a moving target, so the chain is the evidence that matters.

What can this scanner not determine?

  • It cannot tell you which file or database row contains the redirect code; it tells you where the chain leaves your domain, which narrows the search.
  • It cannot reproduce every condition — some payloads gate on geography, ISP, device fingerprint or a one-visit cookie.
  • It cannot distinguish an injected redirect from a misconfigured legitimate one without your intended redirect map for comparison.
  • It cannot follow redirects that require a logged-in session.
If a redirect fires once per visitor, test from a fresh session, a different network and a mobile user agent before accepting a clean result.

What should you do after a finding?

  1. STEP 01

    Record the full chain

    Capture every hop with status codes and the request conditions that triggered it. You need this to verify the fix.

  2. STEP 02

    Decide server-side or client-side

    A hop present in response headers is server-side (platform config, .htaccess, application code). A hop with no header evidence is JavaScript or a meta refresh — inspect the initiator in the browser network panel.

  3. STEP 03

    Check third-party scripts before your own code

    If the initiator is an ad, tag manager or analytics script, the fix belongs with that provider or that tag's configuration.

  4. STEP 04

    Clean, then close the entry point

    Restore affected files from source, remove persistence, and rotate credentials — otherwise the redirect returns with a new destination.

  5. STEP 05

    Re-test across profiles

    Repeat desktop, mobile and search-referrer requests after cache purges, then again 24 hours later.

Sources

  • Fixing hacked sites — Google Search Central

Prefer summary updates? Subscribe to the newsletter.

On this page

  • Why test multiple visitor profiles?
  • How do you read a redirect chain?
  • Who should use this scanner?
  • Why do conditional redirects matter?
  • What can this scanner not determine?
  • What should you do after a finding?