मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी75k · #2870

hsts

यह क्या करती है

यह स्किल जाँचती है कि साइट ब्राउज़रों को बताती है या नहीं कि वे हमेशा उसका सुरक्षित HTTPS कनेक्शन इस्तेमाल करें। यह विज़िटर्स की बेहतर सुरक्षा चाहने वाले साइट मालिकों और डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आपकी साइट HTTPS देती है, पर ब्राउज़र अब भी पहले सादा HTTP आज़मा सकते हैं।
  • ✓जब आप ऐसी साइट चलाते हैं जो logins या निजी डेटा संभालती है।
  • ✓जब आप नया सर्वर, CDN या hosting सेटअप कॉन्फ़िगर करते हैं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hsts/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप मेरी वेबसाइट के सुरक्षित responses में HSTS header जोड़ सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट जाँचता है कि HTTPS responses में Strict-Transport-Security header है या नहीं, और उसकी सेटिंग्स देखता है। वह subdomains सहित एक साल की max age और किसी भी preload से पहले परीक्षण का सुझाव देता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Set an HSTS header

Without HSTS, an attacker on the same network can intercept the first HTTP request and strip TLS (SSL stripping), silently downgrading the connection before the browser ever sees a redirect.

Quick Reference

  • Set Strict-Transport-Security: max-age=31536000; includeSubDomains on all HTTPS responses
  • Use max-age=31536000 (1 year) minimum; HSTS preloading requires at least 1 year
  • Add includeSubDomains to protect all subdomains from downgrade attacks
  • Add preload only after testing — it is difficult to reverse and takes weeks to propagate
  • Never send the HSTS header over plain HTTP — only over HTTPS

Check

Check whether the server sends a Strict-Transport-Security header on all HTTPS responses, and verify the max-age, includeSubDomains, and preload directives are appropriate.

Fix

Add a Strict-Transport-Security header with max-age=31536000 and includeSubDomains to all HTTPS responses. Configure your web server or CDN to send this header, and validate it with curl or securityheaders.com.

Explain

Explain what HTTP Strict Transport Security (HSTS) is, how it prevents SSL stripping attacks, what the max-age and includeSubDomains directives do, and why the preload directive requires caution.

Code Review

Review server config, headers, forms, and integration points related to Set an HSTS header. 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/hsts

अक्सर पूछे जाने वाले सवाल

HSTS क्या करता है?

यह ब्राउज़र को बताता है कि साइट के लिए HTTPS अपने-आप इस्तेमाल करे, जिससे पहले सादे अनुरोध पर downgrade हमले रुकते हैं।

includeSubDomains क्या करता है?

यह वही सुरक्षा साइट के सभी subdomains पर लागू करता है।

preload के साथ सावधानी क्यों?

स्किल कहती है कि preload को पलटना मुश्किल है और उसे असर दिखाने में हफ़्ते लगते हैं, इसलिए पहले उसका परीक्षण करें।

जानकारी

लेखक का मूल विवरण

Use when reviewing HTTP response headers on any site that serves content over HTTPS.

repo: thedaviddias/Front-End-Checklist

लोकप्रियता

GitHub स्टार
75k
रैंकिंग में स्थान
#2870
लाइसेंस
MIT
अपडेट की गई
31/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills