跳到正文
Skillpedia
安全75k · #2879

https

它能做什么

这项技能检查网站的每个页面是否都使用加密连接和有效证书。适用于处理访客信息的网站所有者和开发者。

适用场景

  • ✓当你的网站仍有通过纯 HTTP 提供的页面的时候。
  • ✓当你的证书即将过期,或未覆盖你的所有域名的时候。
  • ✓当你上线新网站或迁移托管服务的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/https/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/https/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我的整个网站是否使用带有效证书的 HTTPS。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会验证 TLS 证书、它对所有主机名的覆盖情况,以及 HTTP 请求是否以 301 重定向。如有需要,它会建议从 Let's Encrypt 等服务商获取免费证书。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Serve all pages over HTTPS

Plain HTTP exposes every request and response to anyone on the network path — ISPs, Wi-Fi operators, and MITM attackers can read passwords, session tokens, and personal data without any warning to the user.

Quick Reference

  • All HTTP traffic must redirect to HTTPS with a 301 (permanent) redirect
  • TLS certificates must be valid, not expired, and cover all hostnames (including www)
  • HTTPS is a prerequisite for HSTS, HTTP/2, Service Workers, geolocation, and other modern APIs
  • Use a free certificate from Let's Encrypt or your hosting provider's managed TLS
  • Verify the certificate chain with SSL Labs (ssllabs.com/ssltest) — aim for A or A+

Check

Check whether all pages of this website are served over HTTPS. Verify the TLS certificate is valid, not expired, and covers all hostnames. Confirm HTTP requests redirect to HTTPS with a 301 status code.

Fix

Configure the web server to obtain a TLS certificate (e.g., via Let's Encrypt/Certbot), redirect all HTTP requests to HTTPS with a 301 redirect, and ensure all internal links and resources use HTTPS URLs.

Explain

Explain why serving pages over HTTPS is essential for security, what happens when plain HTTP is used, and how to obtain and configure a TLS certificate.

Code Review

Review server config, headers, forms, and integration points related to Serve all pages over HTTPS. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/security/https

常见问题

为什么纯 HTTP 有风险?

网络路径上的任何人都可以读取通过纯 HTTP 发送的密码、会话令牌和个人数据。

哪些功能需要 HTTPS?

这项技能列出了 HSTS、HTTP/2、Service Worker 和地理定位等现代功能。

如何检查证书?

这项技能建议使用 SSL Labs,并以获得 A 或 A+ 评级为目标。

详情

作者的原始描述

Use when auditing whether a website or web application serves content exclusively over HTTPS with a valid certificate.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2879
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能