indexability-conflicts
Skill này làm gì
Skill này kiểm tra xem website có đưa ra tín hiệu lẫn lộn cho công cụ tìm kiếm về trang nào cần thu thập và lập chỉ mục hay không. Skill dành cho chủ website và chuyên gia SEO.
Khi nào nên dùng
- ✓Khi một trang vẫn xuất hiện trong kết quả tìm kiếm dù bạn muốn ẩn nó.
- ✓Khi tệp robots.txt và thẻ trang có vẻ mâu thuẫn nhau.
- ✓Khi thẻ canonical trỏ tới một trang được đánh dấu noindex.
Liên kết skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/indexability-conflicts/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra website của tôi xem có chỉ dẫn mâu thuẫn cho công cụ tìm kiếm không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent so sánh quy tắc robots.txt, thẻ meta robots, header X-Robots-Tag và liên kết canonical của từng trang. Agent đánh dấu những kết hợp gửi thông điệp trái ngược và gợi ý một thiết lập rõ ràng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Vì sao robots.txt cộng với noindex là vấn đề?
Skill nói công cụ tìm kiếm không thể đọc thẻ noindex trên trang mà họ bị chặn thu thập, nên chỉ dẫn đó không bao giờ được nhìn thấy.
Liên kết canonical nên trỏ tới đâu?
Skill nói liên kết canonical nên trỏ tới trang có thể lập chỉ mục, không phải trang noindex.
Khác nhau giữa chặn thu thập và chặn lập chỉ mục là gì?
Skill nói robots.txt chặn việc thu thập, còn noindex chặn việc lập chỉ mục. Đây là hai công cụ khác nhau và không nên kết hợp trên cùng một trang.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 75k
- Vị trí xếp hạng
- #2891
- Giấy phép
- MIT
- Cập nhật
- 31/10/2026
Bình luận
- …
Thêm skill từ kho mã này
frontendchecklist
75kKiểm tra mã frontend và trang trực tiếp theo hơn 380 quy tắc về khả năng tiếp cận, tốc độ, SEO và bảo mật, bằng một công cụ dòng lệnh.
frontend-checklist-global
75kKiểm toán một dự án frontend theo đủ 386 quy tắc của Front-End Checklist, và đưa cách sửa cụ thể cho từng vấn đề tìm thấy.
404-page
75kKiểm tra xem trang báo thiếu của bạn có đưa ra các liên kết hữu ích và trả về mã trạng thái 404 thật hay không, để giúp khách bị lạc tìm đường.
about-page
75kKiểm tra xem trang web có trang Giới thiệu rõ ràng giải thích ai điều hành nó hay không, để xây dựng niềm tin với khách và công cụ tìm kiếm.
Skill tương tự
competitive-platform-analysis
280kGiúp bạn hiểu rõ đối thủ cạnh tranh. Công cụ xác định, phân loại và lọc các công ty cạnh tranh trước khi phân tích sâu hơn.
competitive-report-structure
280kTạo báo cáo đối thủ cạnh tranh toàn diện. Kết hợp thông tin để thể hiện bức tranh chung, đề xuất và giúp đồng đội thống nhất hướng đi.
lead-intelligence
280kGiúp agent tìm và liên hệ với những người quan trọng. Phân tích khách hàng tiềm năng, gợi ý cách tiếp cận và quản lý việc liên lạc qua email và mạng xã hội.