Python Standard-Library Script Audits HTTP Security Headers Across an Entire Sitemap
Most online header checkers only test a site's homepage, which often misses problems on other pages such as older blog sections or plugin-generated booking pages. This article presents a Python script, using only the standard library, that reads a sitemap, fetches every URL, and probes the plain-HTTP versions as well. It flags issues including missing or weak HSTS, Content-Security-Policy gaps, absent framing protection, and cookies lacking Secure, HttpOnly or SameSite attributes. Results are written to a CSV with one row per issue and a printed summary. The author stresses that this is a hygiene check rather than a vulnerability scanner, so a clean report does not guarantee security. The article discloses that it is published by Appie.run, whose free tool is mentioned but not required by the script.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in