indexability-conflicts
ما الذي تفعله
تتحقق هذه المهارة مما إذا كان الموقع يرسل إشارات مختلطة إلى محركات البحث بشأن الصفحات التي تُزحف وتُفهرس. وهي موجهة لأصحاب المواقع ومتخصصي تحسين محركات البحث (SEO).
متى تستخدمها
- ✓عندما تظهر صفحة في نتائج البحث رغم أنك أردت إخفاءها.
- ✓عندما يبدو أن ملف robots.txt وعلامات الصفحة لا تتفقان.
- ✓عندما تشير علامة canonical إلى صفحة مضبوطة على noindex.
رابط المهارة
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/indexability-conflicts/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك فحص موقعي بحثًا عن تعليمات متعارضة لمحركات البحث؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقارن الوكيل قواعد robots.txt وعلامات robots meta وترويسات X-Robots-Tag والروابط canonical لكل صفحة. ويُبلغ عن التركيبات التي ترسل رسائل متضاربة، ويقترح إعدادًا واحدًا واضحًا.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Avoid conflicting indexability signals
Conflicting indexability directives create unpredictable crawling and indexing behaviour. The most dangerous combination is robots.txt blocking a page that also has a noindex tag — the noindex is never read, but the URL is still known to Google, leaving it in a limbo state that wastes crawl budget.
Quick Reference
- robots.txt blocks crawling;
noindexblocks indexing — they are different mechanisms and should not be applied together - A page blocked in robots.txt cannot receive a
noindexdirective because crawlers never read the page - Canonical tags pointing to a
noindexpage create an unresolvable conflict — canonicalise to an indexable URL instead
Check
For each page, collect four signals: (1) Is the URL path blocked by robots.txt? (2) Does the page HTML contain <meta name='robots' content='noindex'>? (3) Does the HTTP response include an X-Robots-Tag: noindex header? (4) Does the page's <link rel='canonical'> point to a different URL? Flag: pages blocked in robots.txt that also have noindex directives, pages with canonical pointing to a noindex URL, and pages with conflicting index/noindex signals from meta and HTTP header.
Fix
- Identify all pages where robots.txt blocks crawling AND the page also has
noindex:- If you want the page excluded from the index: remove the robots.txt rule; keep the
noindexso crawlers can read it. - If you want to block all crawling: remove
noindex(irrelevant if not crawled); keep the robots.txt block.
- If you want the page excluded from the index: remove the robots.txt rule; keep the
- Identify canonical tags pointing to
noindexpages:- The canonical-url destination must be an indexable page.
- Change the canonical-url to point to an indexable URL, or remove
noindexfrom the destination.
- Identify pages with both
indexandnoindexin meta robots (from different tags or sources):- Google uses the most restrictive directive; resolve to a single clear intent.
- Verify after fixing using Google Search Console URL Inspection for each affected page.
Explain
robots.txt is a crawl directive; noindex is an indexing directive. They operate at different stages of Google's pipeline. A page blocked in robots.txt is never fetched, so its noindex tag is never read — yet the URL is still known from sitemaps or links, keeping it in a crawl ambiguity state. Google's documentation explicitly warns against blocking pages in robots.txt that you also want to declare as noindex.
Code Review
Programmatically fetch robots.txt and parse its Disallow rules. For each page URL, determine if it matches a Disallow pattern. If yes, fetch the page HTML and check for <meta name='robots'> tags — flag if noindex is present. Also check the X-Robots-Tag HTTP response header for conflicts with the meta tag. Report the specific conflict type for each flagged URL.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/indexability-conflicts
الأسئلة الشائعة
لماذا يُعد الجمع بين robots.txt وnoindex مشكلة؟
تقول المهارة إن محركات البحث لا تستطيع قراءة علامة noindex في صفحة محظور زحفها، فلا تُرى التعليمة أبدًا.
إلى أين يجب أن يشير الرابط canonical؟
تقول المهارة إن روابط canonical يجب أن تشير إلى صفحة قابلة للفهرسة، لا إلى صفحة noindex.
ما الفرق بين حظر الزحف وحظر الفهرسة؟
تقول المهارة إن robots.txt يمنع الزحف، بينما يمنع noindex الفهرسة. وهما أداتان مختلفتان ولا ينبغي الجمع بينهما في صفحة واحدة.
التفاصيل
الوصف الأصلي من المؤلف
Use when auditing a site for indexability issues, investigating why pages appear in Google's index that should be excluded (or vice versa), or reviewing robots.txt and meta robots configurations for consistency.
الشعبية
- نجوم GitHub
- 75k
- الترتيب
- #2891
- الترخيص
- MIT
- آخر تحديث
- 31/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
frontendchecklist
75kيفحص شيفرة الواجهة الأمامية والصفحات الحية مقابل أكثر من 380 قاعدة للوصول وسرعة الأداء وتحسين محركات البحث والأمان، بأداة سطر أوامر.
frontend-checklist-global
75kيدقق مشروع الواجهة الأمامية وفق كل قواعد Front-End Checklist البالغ عددها 386، ويقدم إصلاحًا محددًا لكل مشكلة وجدت.
404-page
75kيتأكد من أن صفحة الصفحات غير الموجودة تقدم روابط مفيدة وتُرجع رمز حالة 404 حقيقيًا، لمساعدة الزوار التائهين على إيجاد طريقهم.
about-page
75kيراجع ما إذا كان لموقعك صفحة «من نحن» واضحة تشرح من يديره، لبناء الثقة لدى الزوار ومحركات البحث.
مهارات مشابهة
competitive-platform-analysis
280kيساعدك على فهم منافسيك. يحدد الشركات المنافسة ويصنّفها ويصفيها قبل أي تحليل أعمق.
competitive-report-structure
280kينشئ تقارير شاملة عن المنافسين. يجمع المعلومات ليوضح الصورة العامة للسوق والتوصيات، ويساعد على توحيد رؤية الفريق.
lead-intelligence
280kيساعد وكيلك على إيجاد الأشخاص المهمين والتواصل معهم. يحلل العملاء المحتملين، ويقترح أساليب الوصول إليهم، ويدير التواصل عبر البريد ووسائل التواصل الاجتماعي.