Redirect Checker - HTTP Redirect Chain Analyzer

February 17, 2026 · View on GitHub

Deployed on Cloudflare Workers TypeScript License: MIT

Analyze HTTP redirect chains, detect redirect loops, and measure performance. Free online tool for SEO professionals, DevOps engineers, and developers.

Try it now: redirect-checker.autocompany.workers.dev

Features

  • Complete redirect chain tracing - Follow 301, 302, 307, 308 redirects
  • Redirect loop detection - Automatically identify circular redirects
  • Multiple User-Agent presets - Test as Googlebot, Bingbot, Mobile, curl
  • Response time measurement - Track latency at each hop
  • API-first design - RESTful JSON API for integration
  • Edge computing - Fast responses from Cloudflare's global network

Quick Start

Web Interface

Visit redirect-checker.autocompany.workers.dev and enter any URL.

API

curl "https://redirect-checker.autocompany.workers.dev/api/check?url=https://bit.ly/example"

Response:

{
  "status": "success",
  "input_url": "https://bit.ly/example",
  "final_url": "https://example.com/page",
  "redirect_count": 2,
  "total_time_ms": 342,
  "chain": [
    {
      "url": "https://bit.ly/example",
      "status": 301,
      "location": "https://intermediate.com",
      "time_ms": 120
    },
    {
      "url": "https://intermediate.com",
      "status": 302,
      "location": "https://example.com/page",
      "time_ms": 98
    },
    {
      "url": "https://example.com/page",
      "status": 200,
      "time_ms": 124
    }
  ],
  "meta": {
    "checked_at": "2026-02-18T10:23:45.000Z",
    "user_agent": "RedirectChecker/1.0"
  }
}

Use Cases

For SEO Professionals

  • Verify 301 redirects - Ensure permanent redirects are correctly configured
  • Detect redirect chains - Find multi-hop redirects diluting link equity
  • Check Googlebot experience - Test redirects as search engine crawlers
  • Audit site migrations - Verify redirects after domain or URL changes

For Developers

  • Debug URL routing - Understand where redirects are happening
  • Detect redirect loops - Find infinite redirect cycles
  • Measure performance - Track response times at each hop
  • Test shortened URLs - Uncover final destinations

For DevOps

  • Monitor redirect health - Integrate with monitoring systems
  • Validate CDN configuration - Verify edge redirects
  • Security auditing - Trace suspicious URL patterns

API Reference

GET /api/check

Check the redirect chain for a URL.

Parameters:

ParameterTypeRequiredDescription
urlstringYesURL to check
user_agentstringNoUser-Agent preset
max_redirectsnumberNoMax redirects (default: 20, max: 50)
timeoutnumberNoTimeout in ms (default: 10000)

User-Agent Presets:

PresetUser-Agent
defaultRedirectChecker/1.0
googlebotMozilla/5.0 (compatible; Googlebot/2.1)
bingbotMozilla/5.0 (compatible; bingbot/2.0)
mobileMozilla/5.0 (iPhone; CPU iPhone OS 14_0)
curlcurl/7.68.0
apiclientAPI-Client/1.0

Example - Check as Googlebot:

curl "https://redirect-checker.autocompany.workers.dev/api/check?url=https://example.com&user_agent=googlebot"

GET /api/user-agents

List all available User-Agent presets.

GET /health

Health check endpoint.

HTTP Redirect Types

Status CodeNameDescription
301Moved PermanentlyResource permanently moved
302FoundResource temporarily at different URL
307Temporary RedirectTemporary, preserve request method
308Permanent RedirectPermanent, preserve request method

Self-Hosting

Deploy your own instance on Cloudflare Workers:

# Clone the repository
git clone https://github.com/brancogao/redirect-checker.git
cd redirect-checker

# Install dependencies
npm install

# Run tests
npm test

# Deploy to Cloudflare Workers
npm run deploy

Local Development

# Run local development server
npm run dev

# Open http://localhost:8788

Tech Stack

  • Runtime: Cloudflare Workers
  • Language: TypeScript
  • Test Framework: Vitest with Workers pool
  • Deployment: Wrangler CLI

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Keywords: redirect checker, http redirect analyzer, url redirect checker, 301 redirect checker, redirect chain checker, redirect loop detector, seo redirect tool, check redirect chain

Links: Demo · GitHub · API