Skip to content

ItsWanheda/http-header-analyzer

🔒 HTTP Header Analyzer

Go Version License Status

A security-focused HTTP header analysis tool built with Go (Golang). It inspects HTTP response headers, TLS configurations, and redirect chains to help identify common web security issues and misconfigurations.

Developed by ItsWanheda.


✨ Features

🛡️ Security & Analysis Core

Cookie Security Analysis: Automated audit of Secure, HttpOnly, and SameSite flags. Remediation Engine: Provides specific, actionable recommendations for every missing or weak security configuration.

  • Security Header Analysis: Deep inspection of CSP, HSTS, X-Frame, X-Content-Type, Referrer, and Permissions policies.
  • TLS/SSL Inspection: Detects TLS versions, cipher suites, certificate metadata, and expiration status.
  • Redirect Chain Tracking: Full path visualization from initial request to final destination.
  • Security Scoring: Automated 0–100 scoring system with letter grades (A+ to F).
  • Built-in SSRF Protection: Hardened against blind/non-blind SSRF by blocking localhost, private IP ranges, and internal network targets.

🎨 User Experience (UX)

  • Cyberpunk/Hacker Aesthetic: Dark-themed, high-contrast UI designed for security enthusiasts.
  • Dark/Light Mode: Smooth theme toggling for comfort during late-night analysis.
  • Responsive Design: Fluid layout optimized for desktops, tablets, and mobile devices.
  • Interactive Feedback:
    • One-Click Clipboard: Instant JSON response copying.
    • Pulsing Skeleton Loaders: Smooth, professional loading states.
    • Toast Notifications: Non-intrusive status updates for alerts and operations.

⚙️ Integration

  • REST API: JSON-based analysis endpoints and system health-check utilities.

🗺️ Roadmap (Upcoming Features)

  • Historical Tracking: Compare scan results over time to detect security regressions.
  • Batch Scanner: Analyze multiple subdomains or lists of URLs.
  • CSP Visualizer: Graphical breakdown of CSP directives and attack surface.
  • Export Options: Download comprehensive reports in JSON, CSV, or PDF formats.

🚀 Quick Start

Prerequisites

  • Go 1.21+
  • Git

Clone the Repository

git clone https://github.com/itswanheda7737/http-header-analyzer.git
cd http-header-analyzer

Install Dependencies

go mod tidy

Run the Application

go run cmd/server/main.go

Open in Browser

http://localhost:8080

📂 Project Structure

http-header-analyzer/
├── cmd/
│   └── server/
│       └── main.go
│
├── internal/
│   ├── analyzer/
│   │   ├── analyzer.go
│   │   ├── security.go
│   │   ├── tls.go
│   │   ├── rules.goo  # Added
│   │   └── redirects.go
│   │    
│   │
│   ├── api/
│   │   └── handlers.go
│   │
│   ├── models/
│   │   ├── security.go # Added
│   │   └── result.go
│   │
│   │
│   └── validation/
│       └── url.go
│
├── web/
│   ├── templates/
│   │   └── index.html #updated
│   │
│   └── static/
│       ├── style.css #updated
│       └── app.js    #updated
│
├── go.mod
├── go.sum
└── README.md

🛠 API Documentation

Analyze Target

Endpoint

POST /api/analyze

Request Body

{
  "url": "https://example.com"
}

Example Response

{
  "url": "https://example.com",
  "score": 95,
  "rating": "A",
  "issues": [
    {
      "header": "Strict-Transport-Security",
      "status": "pass",
      "severity": "High",
      "explanation": "HSTS prevents SSL stripping...",
      "remediation": "Add 'Strict-Transport-Security' header with 'max-age=63072000; includeSubDomains'."
    }
  ]
}

Health Check

Endpoint

GET /api/health

Response

{
  "status": "healthy"
}

📸 Screenshots

Main Interface

Main Interface

Analysis Results

Analysis Results

Analysis Results

Analysis Results


🤝 Contributing

Contributions, issues, and feature requests are welcome.

Steps

  1. Fork the repository
  2. Create a feature branch
git checkout -b feature/my-feature
  1. Commit your changes
git commit -m "Add my feature"
  1. Push to your branch
git push origin feature/my-feature
  1. Open a Pull Request

📄 License

Distributed under the MIT License.

See the LICENSE file for more information.


🙏 Acknowledgments

  • Go Standard Library
  • Gorilla Mux
  • Open-source security community

⭐ Support

If you find this project useful, consider giving it a star on GitHub. It helps the project grow and reach more developers.

About

A powerful, open-source HTTP Header Analyzer built with Go. Features advanced security scanning, TLS inspection, and a stunning Cyberpunk-themed UI.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors