Skip to content

Website Security Grader is a Python-based tool to analyze the security of any website by checking SSL, TLS, headers, and other security practices. It assigns a security grade (A+ to D) based on industry-standard best practices.

Notifications You must be signed in to change notification settings

Tirthraj1605/Website-Security-Grader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Website Security Grader

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.


πŸ“Ί Screenshot

πŸ‘‰ Website Security Grader Screenshot


πŸš€ Features

  • βœ… 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)

Tech Stack

  • Python 3
  • ssl, socket
  • cryptography
  • requests
  • http.client

Grading Criteria

  • 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

Run the Project

python main.py

Enter Website URL

Enter website URL: https://example.com

Author

About

Website Security Grader is a Python-based tool to analyze the security of any website by checking SSL, TLS, headers, and other security practices. It assigns a security grade (A+ to D) based on industry-standard best practices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages