Skillpedia
الأمان75k · #2857

form-https

ما الذي تفعله

تتحقق هذه المهارة من أن النماذج وطلبات البيانات في الموقع تستخدم عناوين HTTPS آمنة. وهي موجهة إلى المطورين الذين يجمعون معلومات من الزوار.

متى تستخدمها

  • ✓عندما يرسل نموذج تسجيل الدخول أو التسجيل البيانات إلى عنوان يبدأ بـ http.
  • ✓عندما تستدعي JavaScript نقطة نهاية http غير آمنة.
  • ✓عندما تُقدّم بعض صفحات موقعك عبر HTTP العادي.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/form-https/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك التحقق من أن كل نماذجي ترسل البيانات عبر HTTPS؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يفحص الوكيل إجراءات النماذج وطلبات JavaScript بحثًا عن عناوين http غير آمنة. ويقترح التحويل إلى https، وضبط الخادم لإعادة توجيه حركة HTTP العادية.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Submit forms over HTTPS

A login form that posts credentials to an HTTP endpoint sends usernames and passwords as plain text over the network — anyone on the same Wi-Fi, the ISP, or a network proxy can read them without any special tools.

Quick Reference

  • Every <form action> URL must use https:// — never http://
  • Forms without an explicit action attribute submit to the current page URL — ensure the page itself is on HTTPS
  • Check fetch() and XMLHttpRequest calls in JavaScript — data posted to http:// endpoints is unencrypted
  • Browsers show a 'Not Secure' warning in the address bar when a form is on an HTTP page
  • From Chrome 86+, autofill is disabled on HTTP forms to protect credentials

Check

Scan all HTML form elements for action attributes pointing to http:// URLs. Check all JavaScript fetch() and XMLHttpRequest calls for http:// endpoints. Verify the current page URL is HTTPS so forms without an explicit action submit securely.

Fix

Replace all http:// form action URLs with https:// equivalents. Ensure the web server redirects HTTP to HTTPS (301) so that forms on the page also benefit. For JavaScript API calls, update all endpoint URLs to use https://.

Explain

Explain why form submissions over HTTP expose user data in transit, how network attackers can intercept plain HTTP traffic, and what the browser security indicators look like on insecure forms.

Code Review

Review server config, headers, forms, and integration points related to Submit forms over 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/form-https

الأسئلة الشائعة

لماذا يهم HTTP العادي؟

البيانات المرسلة عبر HTTP يمكن قراءتها من أي شخص على الشبكة نفسها، بما فيها كلمات المرور.

كيف يعرض المتصفح النموذج غير الآمن؟

تقول المهارة إن المتصفحات تعرض تحذير Not Secure في شريط العنوان على صفحات HTTP.

هل يؤثر هذا على الملء التلقائي؟

تنبه المهارة إلى أن Chrome 86 وما بعده يعطّل الملء التلقائي في نماذج HTTP لحماية بيانات الدخول.

التفاصيل

الوصف الأصلي من المؤلف

Use when reviewing HTML forms, fetch/XHR calls, and form action attributes to ensure data is submitted exclusively over HTTPS.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2857
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة