https-downgrade
ما الذي تفعله
تفحص هذه المهارة روابط الموقع الآمن وعناوين موارده بحثًا عن عناوين http غير مشفّرة. وهي موجهة للمطورين وأصحاب المواقع الذين ينقلون موقعهم إلى HTTPS.
متى تستخدمها
- ✓عندما تنقل موقعك إلى HTTPS وما زالت بعض الروابط القديمة تستخدم http.
- ✓عندما تحذّرك المتصفحات من محتوى مختلط في صفحاتك.
- ✓عندما تستخدم القوالب عناوين http ثابتة بدلًا من https.
رابط المهارة
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/https-downgrade/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك إيجاد الروابط في موقعي الآمن التي ما زالت تشير إلى عناوين http؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يفحص الوكيل الروابط وعلامات الموارد بحثًا عن عناوين 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
- آخر تحديث
- 31/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
frontendchecklist
75kيفحص شيفرة الواجهة الأمامية والصفحات الحية مقابل أكثر من 380 قاعدة للوصول وسرعة الأداء وتحسين محركات البحث والأمان، بأداة سطر أوامر.
frontend-checklist-global
75kيدقق مشروع الواجهة الأمامية وفق كل قواعد Front-End Checklist البالغ عددها 386، ويقدم إصلاحًا محددًا لكل مشكلة وجدت.
404-page
75kيتأكد من أن صفحة الصفحات غير الموجودة تقدم روابط مفيدة وتُرجع رمز حالة 404 حقيقيًا، لمساعدة الزوار التائهين على إيجاد طريقهم.
about-page
75kيراجع ما إذا كان لموقعك صفحة «من نحن» واضحة تشرح من يديره، لبناء الثقة لدى الزوار ومحركات البحث.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.