본문으로 건너뛰기
Skillpedia
보안75k · #2876

http-to-https

하는 일

이 스킬은 웹 서버가 일반 HTTP 방문을 보안 HTTPS 주소로 보내는지 확인합니다. 웹사이트를 운영하는 사이트 운영자와 개발자를 위한 것입니다.

사용하는 경우

  • ✓방문자가 https 없이 도메인을 입력해 안전하지 않은 버전에 도착할 때.
  • ✓오래된 링크가 아직 일반 http 주소를 가리킬 때.
  • ✓새 서버나 호스팅 업체를 설정할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/http-to-https/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 웹사이트의 모든 http 방문이 https로 리디렉션되도록 해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 일반 주소가 전체 경로를 유지한 채 일치하는 HTTPS 주소로 보내는 301 리디렉션으로 응답하는지 확인합니다. 서버나 CDN 수준에서 설정하고 명령줄 요청으로 테스트하도록 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Redirect HTTP to HTTPS

Without an HTTP-to-HTTPS redirect, users who type the domain without https:// or follow old links land on the insecure version of the site, exposing session cookies and form data to network attackers.

Quick Reference

  • Redirect http://example.com to https://example.com with HTTP 301 (permanent redirect)
  • Preserve the full path and query string in the redirect: https://$host$request_uri
  • Use 301 (not 302) so browsers and search engines cache the redirect and future requests go directly to HTTPS
  • Configure redirects at the server/CDN level — never rely on client-side JavaScript for security redirects
  • After validating HTTPS works, add HSTS to eliminate future HTTP requests entirely

Check

Test whether http://example.com redirects to https://example.com with a 301 status code. Check that the full URL path and query string are preserved in the redirect Location header.

Fix

Configure the web server to redirect all HTTP requests to HTTPS with a 301 status code, preserving the full request path. Verify the redirect with curl -I http://example.com.

Explain

Explain why redirecting HTTP to HTTPS is necessary, the difference between 301 and 302 redirects, and how HSTS can eliminate the redirect for returning users.

Code Review

Review server config, headers, forms, and integration points related to Redirect HTTP to 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/http-to-https

자주 묻는 질문

왜 302가 아니라 301인가요?

스킬은 301이 영구적이어서 브라우저와 검색엔진이 이를 저장하고 앞으로 바로 HTTPS로 이동한다고 설명합니다.

리디렉션을 JavaScript로 해도 되나요?

아닙니다. 스킬은 보안 리디렉션은 클라이언트 코드가 아니라 서버나 CDN에서 설정해야 한다고 설명합니다.

리디렉션 설정 후에는 무엇을 하나요?

스킬은 앞으로 일반 HTTP 요청을 막기 위해 HSTS를 추가하라고 제안합니다.

상세 정보

작성자의 원본 설명

Use when checking whether a web server is configured to redirect all HTTP traffic to HTTPS.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2876
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬