Website Security Grader is a Python-based tool that analyzes the security posture of any website. It evaluates key parameters like HTTPS support, TLS configuration, SSL certificate, secure headers, secure cookies, and more β then assigns a Security Grade (A+ to D) based on industry-standard best practices.
- β Check if the website uses HTTPS
- π Analyze TLS version (TLSv1.2, TLSv1.3, etc.)
- π Inspect SSL/TLS Certificate details
- π Validate Certificate expiration
- π‘οΈ Detect HTTP Strict Transport Security (HSTS)
- π Check for Secure Cookies
- π¦ Inspect Security Headers:
X-Frame-Options
X-Content-Type-Options
X-XSS-Protection
- π§ Check for Content Security Policy (CSP)
- π Assign final security grade (A+ to D)
- Python 3
- ssl, socket
- cryptography
- requests
- http.client
- HTTPS Support --> +2
- TLS v1.2 or v1.3 --> +2
- Valid SSL Certificate --> +2
- HSTS Enabled --> +2
- Security Headers Present --> +2
- Content Security Policy Present --> +2
- Secure Cookies --> +2
Score β Grade Mapping:
- β₯ 12 --> A+
- β₯ 10 --> A
- β₯ 8 --> B
- β₯ 6 --> C
- < 6 --> D
python main.py
Enter Website URL
Enter website URL: https://example.com
- Tirthraj Bhalodiya
- tirthrajbhalodiya2003@gmail.com