DEV Community

Cover image for Ho costruito un bot Telegram che gradisce la sicurezza del tuo sito in 5 secondi
Cub4nH1
Cub4nH1

Posted on

Ho costruito un bot Telegram che gradisce la sicurezza del tuo sito in 5 secondi

Ho costruito un bot Telegram che gradisce la sicurezza del tuo sito in 5 secondi

Perché?

Ogni sito web dovrebbe avere header di sicurezza HTTP configurati correttamente (CSP, HSTS, CORS, X-Frame-Options...). Ma verificarli a mano è noioso, e la maggior parte degli sviluppatori non lo fa.

Cosa fa

@GradeMySite_Bot è un bot Telegram che:

  • Analizza gratuitamente qualsiasi URL
  • Assegna un grade (A+ → F) basato su 15 header
  • Mostra quali header mancano e come fixarli
  • Genera un report PDF professionale (a pagamento in Telegram Stars)

Tecnologie

  • Backend: Node.js + Express (tool esistente, ~200 righe)
  • Bot: Python, long polling (niente webhook — funziona su tablet)
  • Pagamenti: Telegram Stars (nessuna approvazione, margine 100%)
  • PDF: WeasyPrint su template HTML

Il bot

Provalo: https://t.me/GradeMySite_Bot

Manda un URL e vedi subito se il tuo sito è sicuro.

Cosa ho imparato

  • Telegram Payments API è sorprendentemente semplice
  • WeasyPrint su Termux richiede font system (ttf-dejavu)
  • Il long polling funziona bene dietro NAT senza IP pubblico

Prossimo passo

Se riceve traffico, aggiungerò:

  • Versione inglese
  • Report CSV e Bulk Scan (già implementati)
  • Canale Telegram "Security Alert"

Ti è stato utile? Lascia una stella su GitHub


cover_image: https://raw.githubusercontent.com/Cub4nH1/security-headers-checker/master/cover1.png
published: true
tags: [telegram, security, webdev, bot, python]

Top comments (0)