الموارد · 06
دليل تدقيق شامل لرحلة المستخدم لضمان أمان وأداء عالٍ للويب
تدقيق السرعة، وسهولة الوصول، والأمان، ومعدل التحويل بناءً على الإجراءات التي يحتاجها المستخدمون فعلاً.
مُحدَّث · 9 min
ما يُساعد هذا الدليل على تحقيقه
- تحديد أولويات معوقات المستخدم الحقيقية.
- تقليل حجم الملفات، والتبعيات، ونقاط الضعف الأمنية.
- ربط الأداء بمعدل التحويل.
- التحقق من صحة الإصلاحات في ظروف واقعية.
فحص سريع
- هل تم تحديد رحلات المستخدم الثلاث الأكثر قيمة؟
- هل بيانات الحقل مُجزأة للأجهزة المحمولة؟
- هل يمكن استخدام الموقع باستخدام لوحة المفاتيح؟
- هل لكل برنامج نصي تابع لجهة خارجية مالك؟
- هل تساعد أخطاء النموذج المستخدمين على إتمام الإجراء؟
طريقة خطوة بخطوة
- 1
تحديد مسارات المستخدمين الرئيسية
تحديد البحث، أو القراءة، أو التواصل، أو التسجيل، أو الشراء، أو الإدارة بناءً على القيمة التجارية. وصف الجهاز، والشبكة، والسياق، والنتيجة المتوقعة.
المُخرَج: سيناريوهات اختبار مُرتبة حسب الأولوية.
- 2
قياس الأداء الميداني والمختبري.
دمج بيانات المستخدمين الحقيقيين المجمعة مع اختبارات قابلة للتكرار. مراقبة التحميل، والاستجابة، والاستقرار، والأخطاء، ومعدل التخلي عن الصفحة دون اختزال التحليل إلى نتيجة واحدة.
المُخرَج: خط أساس مُجزأ.
- 3
فحص المسار الحرج.
مراجعة HTML الأولي، والخطوط، والصور، وجافا سكريبت، والتخزين المؤقت، واستجابة الخادم، والموارد المُعطِّلة. تخصيص ميزانية واضحة للعناصر التي تخدم مسار المستخدم.
المُخرَج: ميزانية الأداء.
- 4
تقليل المساحة المكشوفة.
حصر البرامج النصية الخارجية، والتبعيات، والرؤوس، وملفات تعريف الارتباط، والجلسات، والنماذج، وواجهات الإدارة. إزالة العناصر غير الضرورية وتعزيز أمان الخادم.
المُخرَج: سجل التبعيات والحماية.
- 5
اختبار تجربة شاملة.
تشغيل كل إجراء باستخدام لوحة المفاتيح، وقارئ الشاشة، والشاشة الصغيرة، والتكبير، وحالة الخطأ. التحقق من التسميات، والتركيز، والتباين، ورسائل الاسترداد.
المُخرَج: تقرير إمكانية الوصول والاحتكاك.
- 6
إصدار مع ضوابط
أتمتة الضوابط المستقرة، ومراقبة نتائج الأعمال بعد الإصدار، وإعداد التراجع. يُعتبر الإصلاح نهائيًا عندما تتحسن تجربة المستخدم الفعلية دون حدوث تراجع.
المُخرَج: خطة التحقق المستمر.
افهم واحسب واتخذ القرار
Core Web Vitals: فهم المئين 75 وحدود القياس
يصف LCP تحميل المحتوى الرئيسي، وINP الاستجابة للتفاعلات، وCLS الاستقرار البصري. استخدم المئين 75 وافصل الهاتف عن الحاسوب. تصنّف الأداة القيم التي تدخلها؛ ولا تزور موقعك أو تقيسه.
سجّل عنوان الصفحة أو مجموعتها والفترة والجهاز وأداة القياس. يساعد الاختبار المخبري على إعادة إنتاج السبب، لكنه لا يحل محل توزيع الزيارات الفعلية. غياب قيمة INP لا يعني استجابة فورية.
المؤشرات والأدلة
| المؤشر | التفسير | الدليل المطلوب |
|---|---|---|
| LCP ≤ 2.5 s | التحميل ضمن النطاق الجيد | المئين 75 والعنصر الرئيسي وتأخير تحميله |
| INP ≤ 200 ms | الاستجابة ضمن النطاق الجيد | المئين 75 وإعادة إنتاج التفاعل البطيء |
| CLS ≤ 0.1 | الاستقرار ضمن النطاق الجيد | المئين 75 والعنصر الذي يتحرك |
قاعدة الحساب
جيد: LCP ≤ 2.5؛ INP ≤ 200؛ CLS ≤ 0.1. ضعيف: LCP > 4؛ INP > 500؛ CLS > 0.25. ما بين الحدين يحتاج إلى تحسين.
مثال عملي افتراضي
حالة توضيحية
تبدو صفحة الحجز سريعة في المختبر، لكن زر التأكيد الخاص بها يستجيب ببطء على الهاتف المحمول. يقوم الفريق بتقسيم قياسات الميدان حسب الجهاز والرحلة، ثم يختبر سلوك جافا سكريبت ولوحة المفاتيح بشكل أقل.
القرار والأدلة المتوقعة
لا يُقبل التغيير إلا إذا ظلت المهمة متاحة، وتحسن التفاعل، وظلت ضوابط أمان الرحلة تعمل.
مؤشرات الإدارة
| المؤشر | ما يقيسه | الإجراء الأول |
|---|---|---|
| نجاح الرحلة | إتمام المستخدمين للإجراء دون حدوث خطأ يعيق تقدمهم | إصلاح الأعطال المشتركة بين عدة أجزاء أولاً |
| أداء التطبيق الميداني | التحميل والتفاعل والاستقرار على الأجهزة الحقيقية | تقسيم النظام قبل استهداف عنق الزجاجة الرئيسي |
| تكلفة الطرف الثالث | البايتات، ووقت الخيط الرئيسي، والطلبات الخارجة عن السيطرة المباشرة | إزالة أو تأجيل أو استبدال أي طرف ثالث غير أساسي |
| معدل الخطأ | الأعطال التقنية وأعطال الإدخال حسب الخطوة | تحسين الوقاية والرسائل والاسترداد |
الأخطاء الشائعة
- تحسين الصفحة الرئيسية فقط
- الخلط بين نتيجة المختبر والتجربة الحقيقية
- إضافة أداة أمان دون إزالة المخاطر غير الضرورية
- الإضرار بإمكانية الوصول أو القياس لتوفير أجزاء من الثانية
الأسئلة المتكررة
هل يتعارض الأداء والأمان؟
لا. غالبًا ما يؤدي تقليل الاعتماديات، وجافا سكريبت، والطلبات غير الضرورية إلى تحسين كليهما. يجب قياس المفاضلات مقابل الرحلات الفعلية والمخاطر.
ما هي النتيجة التي يجب أن نستهدفها؟
لا يغني حد واحد عن بيانات الميدان. حدد الميزانيات حسب الرحلة والجهاز والجمهور، ثم تتبعها جنبًا إلى جنب مع نتائج الأعمال.
لماذا يجب تضمين إمكانية الوصول في التدقيق؟
لأن الإجراء السريع الذي لا يمكن استخدامه عبر لوحة المفاتيح، أو فهمه، أو استعادته، يظل فشلًا للمستخدم وللعمل التجاري.
المراجع: البيانات والاستخدامات والحدود
تاريخ مراجعة الوثائق .
الملاحظات المرجعية المفصّلة متاحة باللغة الإنجليزية في هذه النسخة.
| المصدر والغرض | بيانات أو معيار متحقق منه | كيفية الاستخدام | حدود يجب مراعاتها |
|---|---|---|---|
| MDN · Cookie boundaries Understand session-cookie scope and SameSite boundaries. |
Secure, HttpOnly, SameSite and the __Host- prefix address different risks. A site can include multiple origins. | Test external navigation, subdomains, provider returns and authenticated operations separately. | Cookie configuration does not replace CSRF checks or server-side authorisation. |
مراجع IANA وقراءة DNSSEC
الملاحظات المرجعية المفصّلة متاحة باللغة الإنجليزية في هذه النسخة.
Distinguish resolution, caching and web responses
An outage can occur before any HTTP response. Examine DNS resolution, its validation and caches separately from the web server.
- Record the failing stage and the resolver involved.
- A received TTL and RRSIG expiration are different constraints.
- An error disappearing on one device does not prove recovery for all visitors.
Read the registries and try the cache model →
IETF · RFC 4033 · §3–5 · 2026-10-23
الإضافات: الأذونات والوصول
الملاحظات المرجعية المفصّلة متاحة باللغة الإنجليزية في هذه النسخة.
Include the browser in exposure scope
A hardened site can still be visited from a profile with highly authorised extensions. Keep the boundary between site security, browser capabilities and managed-endpoint choices visible.
- Inventory the test profile’s extensions with version and accountable owner.
- Explain each required host and check optional permissions actually granted.
- Test restriction and removal; static manifest reading cannot replace code and traffic observation.
Read the permission directory and manifest examples →
Microsoft Learn · Manage Microsoft Edge extensions using group policies · Enterprise policy documentation consulted 2026-10-23
CSP: التوجيهات والبدائل والمسارات
الملاحظات المرجعية المفصّلة متاحة باللغة الإنجليزية في هذه النسخة.
CSP tells a browser which resources and certain behaviours a page permits. Reviewing it requires distinguishing the requested directive, its possible fallback, policy mode and delivery. A directive name in a header alone does not establish that a user journey is protected.
Twelve fallback chains extracted from CSP3 §6.8.3, three independent checks and eight fictional scenarios. Reference: W3C Working Draft of 16 September 2026, a work in progress rather than a final Recommendation. The consulted IANA registry contains sixteen names and was updated 3 February 2023.
W3C · Content Security Policy Level 3 · Mike West, Antonio Sartori · Working Draft · 2026-09-16 · work in progress · §2.2.1, §3, §6.8.3–6.8.4, §8.1
Twelve fallback orders and three checks without default-src
The selected list is not added to default-src. A present but empty directive also stops lookup. The final three rows are not fetch chains: base-uri, form-action and frame-ancestors require their own directive.
| Requested check | Lookup order · first present directive wins | Reference |
|---|---|---|
script-src-elem | script-src-elem → script-src → default-src | CSP3 §6.8.3 |
script-src-attr | script-src-attr → script-src → default-src | CSP3 §6.8.3 |
style-src-elem | style-src-elem → style-src → default-src | CSP3 §6.8.3 |
style-src-attr | style-src-attr → style-src → default-src | CSP3 §6.8.3 |
worker-src | worker-src → child-src → script-src → default-src | CSP3 §6.8.3 |
connect-src | connect-src → default-src | CSP3 §6.8.3 |
manifest-src | manifest-src → default-src | CSP3 §6.8.3 |
object-src | object-src → default-src | CSP3 §6.8.3 |
frame-src | frame-src → child-src → default-src | CSP3 §6.8.3 |
media-src | media-src → default-src | CSP3 §6.8.3 |
font-src | font-src → default-src | CSP3 §6.8.3 |
img-src | img-src → default-src | CSP3 §6.8.3 |
base-uri | base-uri | base-uri |
form-action | form-action | form-action |
frame-ancestors | frame-ancestors | frame-ancestors |
ورشة قراءة CSP
Choose a case and a check. This workshop uses pre-separated example directives, keeps the first occurrence of each name and stops at the first directive present in the stated order. It does not parse arbitrary CSP or check source expressions, URLs, nonces, hashes, redirects or actual browser behaviour.
Each policy is read separately with its mode and delivery. Values are displayed as text; the workshop loads no resource named by an example.
نتيجة كل سياسة
Delivery and mode: three different readings
| Mechanism | What to check | Limit |
|---|---|---|
| Content-Security-Policy | Response header and policies actually received. | Each enforced policy adds its constraint; a second cannot relax the first. |
| Content-Security-Policy-Report-Only | Violation observation and the configured reporting path. | Monitoring mode does not enforce this policy’s blocking. |
| meta http-equiv | Element position and content processed before it. | Report-Only, frame-ancestors, report-uri and sandbox are not supplied by this mechanism. |
Eight reading scenarios and acceptance exercises
C01 · Fallback to default-src
script-src-elem
1 · enforce · header
Content-Security-Policy: default-src 'none'Reading : script-src-elem and script-src are absent, so the chain reaches default-src. This list does not define base-uri, form-action or frame-ancestors.
Test to add : Select those three independent checks as well. Do not infer protection against embedding the page from default-src.
C02 · Fallback is not source-list merging
script-src-attr
1 · enforce · header
Content-Security-Policy: default-src 'none'; script-src 'self'Reading : script-src-attr reaches script-src before default-src. Their lists are not concatenated. The presence of self alone does not authorise an inline event handler.
Test to add : Test script elements, event attributes and other relevant mechanisms separately. The workshop selects a directive; it does not decide whether a script executes.
C03 · A worker reaches child-src before script-src
worker-src
1 · enforce · header
Content-Security-Policy: default-src 'none'; script-src 'self'; child-src https://frames.example.netReading : worker-src is absent. The first directive present in its fallback order is child-src. The word child does not mean only iframes are affected.
Test to add : Check workers and frames separately; record the selected control and observe the browser in its real context.
C04 · A specific directive stops fallback
worker-src
1 · enforce · header
Content-Security-Policy: default-src 'none'; child-src https://frames.example.net; worker-src 'self' blob:Reading : worker-src is present: neither child-src nor default-src supplies the list for this check. Its value is displayed without checking a URL, redirect or local scheme.
Test to add : Test creation and loading of expected workers together with their own policy and dependencies. Do not treat this illustrative list as universal configuration.
C05 · An empty directive is not absent
img-src
1 · enforce · header
Content-Security-Policy: img-src; img-src https://images.example.net; default-src 'self'Reading : The first img-src occurrence is retained with an empty list. The second occurrence is discarded in this policy; the workshop does not replace the first with default-src.
Test to add : Check duplicates in configuration and the received response. A present field without source expressions must not be treated as missing.
C06 · Two enforced policies remain two constraints
connect-src
1 · enforce · header
Content-Security-Policy: default-src 'self'; connect-src 'none'2 · enforce · header
Content-Security-Policy: connect-src https://api.example.netReading : The first policy retains connect-src none; the second names an origin. Adding the second does not lift the first policy’s restriction. Results are shown separately.
Test to add : Observe every received header after CDN and proxy handling. Do not unite both policies’ sources into a broader allowlist.
C07 · Monitoring is not enforcement
script-src-elem
1 · enforce · header
Content-Security-Policy: script-src 'self'2 · report-only · header
Content-Security-Policy-Report-Only: script-src 'none'Reading : script-src is selected in both policies. The second is Report-Only: it monitors violations without enforcing its blocking. The first retains its own effect.
Test to add : Plan report collection and check real journeys before a separately decided enforcement change. A monitored directive name alone does not establish blocking.
C08 · frame-ancestors in meta is ignored
frame-ancestors
1 · enforce · meta
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; frame-ancestors 'none'">Reading : This directive is not supported in a meta-delivered policy. default-src remains a resource control rather than a fallback for frame-ancestors.
Test to add : Inspect the policy actually received in headers and authorised embeddings. A meta element cannot supply Report-Only mode either.
Sixteen IANA names: registration differs from support
CSP2 registry references are preserved verbatim. This copy does not list every CSP3 addition: absence of worker-src or script-src-elem does not invalidate those names in CSP3. Conversely, a historical name such as plugin-types does not establish support in a current browser.
IANA · Content Security Policy Directives · Registry updated 2023-02-03 · consulted 2026-10-23
| Registered name | Registry reference | Registration date |
|---|---|---|
base-uri | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
child-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
connect-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
default-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
font-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
form-action | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
frame-ancestors | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
frame-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
img-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
media-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
object-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
plugin-types | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
report-uri | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
sandbox | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
script-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
style-src | https://www.w3.org/TR/CSP2/ | 2015-11-24 |
IANA · Protocol Registries · CC0 1.0 · Revised 2021-11-10
Test protection without breaking the journey
| Proposed CIE journey | Control to review | Useful evidence |
|---|---|---|
| Sign-in and recovery | Required scripts, styles, frames and connections. | Success, useful refusal, recovery and errors observed with received policies. |
| Payment or external integration | frame-src for embedded content; frame-ancestors for who embeds your page. | Test the two directions separately rather than conflate them. |
| Form and confirmation | form-action, validation scripts and API requests. | Submission and confirmation received; a click alone does not establish processing. |
| Worker and deferred features | worker-src and its fallback order. | Creation, dependent resources and visible errors in the authorised context. |
| Third-party addition | Inventory of actually required scripts, connections, images and frames. | Documented need and sampled journeys; no wildcard added to hide a breakage. |
| Progressive release | Observed mode, configuration version and stop criteria. | Reviewed reports, attributed defects, tests and an enforcement decision. |
Associate a policy with the page version and test critical journeys after CDN or proxy transformations. CSP is defence in depth: it does not replace output encoding, dependency control or access checks. This model explains directive selection rather than a security verdict.
Provenance, edition and licence
W3C CSP3 · Working Draft 2026-09-16 · reviewed 2026-10-23 · IANA registry 2023-02-03
IANA XML SHA-256: 42d2068b345f9b1df2bb124dd8b20e26d16dbd86960aafb62624aa285f2997c0
W3C HTML SHA-256: df90a9028632b39c70d9ed40dadfadbc2f3f690621ecf6212ef4f1376005738e
W3C · Software and Document license · 2023 · Effective 2023-01-01 · full notice below
This document and its lookup data include material derived from Content Security Policy Level 3, https://www.w3.org/TR/2026/WD-CSP3-20260916/. Copyright © 2026 World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023/
Changes: selected fallback lists extracted as data; original CIE explanations, fictional scenarios and limited lookup implementation added.
This work is being provided by the copyright holders under the following license.
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C software and document short notice should be included.
Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [$year-of-document] World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023/"
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.
Core Web Vitals: الحدود والبيانات الميدانية
الملاحظات المرجعية المفصّلة متاحة باللغة الإنجليزية في هذه النسخة.
Web performance: state the measurement scope
Before announcing a gain, retain device, URL or origin and collection period.
- Compare the same device, scope and documented periods.
- Do not turn missing data into zero.
- Verify functions and accessibility after the fix.
Read the thresholds and try the p75 reader →
Google · About PageSpeed Insights · Living documentation · consulted 2026-10-23
المراجع الرسمية
تدعم المراجع الطريقة. قم بتكييف عمليات التحقق مع سياقك؛ فهي ليست شهادة. قد تكون عناوين المراجع الأصلية والوثائق المصدرية بلغة أخرى.
تاريخ مراجعة المراجع .
- Google Search Central — Core Web Vitals
- W3C — Web Content Accessibility Guidelines 2.2
- MDN · Cookie boundaries
- Google · About PageSpeed Insights
- W3C · Content Security Policy Level 3 · Mike West, Antonio Sartori
- IANA · Content Security Policy Directives
- Google Chrome · Declare permissions
- Microsoft Learn · Manage Microsoft Edge extensions using group policies
- IETF · RFC 4033 · DNSSEC introduction and requirements
- IETF · RFC 4035 · DNSSEC validation and caching
