https-downgrade
できること
このスキルは、安全なサイトのリンクとリソースのアドレスに、平文の http の URL がないかを確認します。HTTPS へ移行しているサイトの開発者やサイト運営者向けです。
使う場面
- ✓サイトを HTTPS に移行したが、古いリンクがまだ http を使っているとき。
- ✓ブラウザがページの混在コンテンツについて警告しているとき。
- ✓テンプレートに、http を使った固定のアドレスがあるとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/https-downgrade/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“HTTPS のサイトで、まだ http のアドレスを指しているリンクを探してもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、リンクとリソースのタグの http のアドレスを探します。内部のリンクは相対パスか https のパスに変えることを提案し、外部のサイトが HTTPS に対応しているかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Do not link from HTTPS to HTTP
Linking from a secure HTTPS page to an HTTP destination creates a mixed content situation that browsers warn users about or block entirely. It also means the linked page does not receive the ranking signal passed through the HTTPS referrer. For internal links, it can cause redirect loops or broken navigation.
Quick Reference
- All internal links on an HTTPS page must point to HTTPS URLs — HTTP links trigger mixed content warnings
- External links to HTTP destinations break the security chain and may be blocked by browsers
- Use protocol-relative URLs (
//example.com) or absolute HTTPS URLs — never hardcodehttp://for internal links
Check
On pages served over HTTPS, scan all <a href> attributes for URLs starting with http:// (not https://). Flag: (1) Internal links using http:// that should use https:// or a relative path. (2) External links to third-party sites still on HTTP (flag for review — the destination may not support HTTPS). (3) Resource links (<img src>, <script src>, <link href>) pointing to HTTP URLs — these cause active mixed content warnings.
Fix
- Audit all
<a href>values in templates and content forhttp://links. - For internal links: change
http://yourdomain.com/pathto/path(relative) orhttps://yourdomain.com/path. - For external links: check if the destination supports HTTPS; update to
https://if so. - For resource links (scripts, styles, images): always use
https://or protocol-relative//. - In your CMS or database: run a search-and-replace to update stored HTTP URLs to HTTPS.
- Set up a server-level redirect from HTTP to HTTPS to catch any remaining HTTP URLs in user-generated content.
- Verify with:
grep -r 'href="http://' ./templates/or use a link auditing tool.
Explain
HTTPS is a confirmed Google ranking factor. When an HTTPS page links to HTTP resources or destinations, it downgrades the secure context, triggering browser warnings and potentially blocking content. For internal links, HTTP destinations mean an extra redirect (HTTP→HTTPS) on every navigation, slowing page loads. The ranking signal passed via the link's referrer is also diminished when crossing from HTTPS to HTTP.
Code Review
Parse all <a href>, <img src>, <script src>, and <link href> attributes. Flag any value starting with http:// (not https:// or a relative path). In JavaScript frameworks, also check for http:// in fetch(), axios, or router navigation calls. Report the count of HTTP links by category (internal, external, resource).
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/https-downgrade
よくある質問
混在コンテンツとは何ですか?
安全なページが、安全でない http のリソースを読み込んだりリンクしたりすることで、ブラウザが警告したりブロックしたりすることがあります。
最も緊急のリンクはどれですか?
http のアドレスを持つ画像、スクリプト、スタイルシートは、実際の警告を出すため最も重要だとしています。
HTTPS に対応していない外部のサイトはどうしますか?
リンクを変える前に、移動先が HTTPS に対応しているかを確認し、見直すことを提案しています。
詳細
作者による元の説明
Use when auditing a site's internal and external links for protocol consistency, migrating a site from HTTP to HTTPS, or reviewing hardcoded URLs in a codebase that may use `http://` instead of `https://`.
人気
- GitHubのスター
- 75k
- ランキング
- #2878
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。