Pular para o conteúdo
Skillpedia
Segurança75 mil · #2876

http-to-https

O que ela faz

Esta skill verifica se um servidor web envia os acessos em HTTP simples para o endereço seguro em HTTPS. É para donos de sites e desenvolvedores que mantêm sites.

Quando usar

  • ✓Quando visitantes digitam seu domínio sem https e caem na versão insegura.
  • ✓Quando links antigos ainda apontam para endereços http simples.
  • ✓Quando você configura um novo servidor ou provedor de hospedagem.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/http-to-https/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode garantir que meu site redirecione todos os acessos http para https?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica se o endereço simples responde com um redirecionamento 301 para o endereço HTTPS correspondente, mantendo o caminho completo. Ele sugere configurar isso no servidor ou na CDN e testar com uma requisição por linha de comando.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

Por que 301 e não 302?

A skill diz que o 301 é permanente, então navegadores e buscadores o guardam em cache e vão direto ao HTTPS no futuro.

O redirecionamento deve ser feito em JavaScript?

Não. A skill diz que redirecionamentos de segurança devem ser configurados no servidor ou na CDN, e não no código do cliente.

O que vem depois de configurar o redirecionamento?

A skill sugere adicionar HSTS para impedir futuras requisições em HTTP simples.

Detalhes

Descrição original do autor

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

repo: thedaviddias/Front-End-Checklist

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#2876
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas