SEO
robots.txt Validator
التحقق من robots.txt — بنية مجموعات User-agent، التوجيهات، اختبار مسار محدد للسماح/الحظر.
إذا ذكرت النطاق فقط، سيُضاف /robots.txt تلقائيًا. لن يعمل مع جميع المواقع — بعضها يحظر الطلبات عبر النطاقات (CORS)؛ إذا فشل التحميل، افتح robots.txt في تبويب جديد والصق المحتوى يدويًا.
robots.txt controls which paths of a site search bots are allowed to crawl. A mistake in this file can accidentally block an entire site from indexing, or expose internal sections that shouldn't be crawled. This tool checks the file's structure and tests a specific path against allow/disallow rules.
How to use it
- Paste the contents of robots.txt and the tool parses the User-agent groups and directives (Allow, Disallow, Sitemap).
- Enter a specific path (e.g. /admin/ or /blog/post-1) to check whether it's allowed for a chosen bot.
- Syntax errors and suspicious constructs are flagged separately from valid directives.
Common uses
- Checking before a deploy that a new robots.txt hasn't accidentally blocked important pages.
- Debugging why a specific page isn't indexed — it may be caught by a Disallow rule.
- Comparing rules for different bots (Googlebot, Bingbot, etc.) when separate User-agent groups target them.
Things to keep in mind
robots.txt only blocks crawling — it doesn't guarantee a page won't appear in the index: if something else links to it, Google can still show the URL with no description. To reliably exclude a page, use a meta noindex tag, and the page must not be blocked in robots.txt for that tag to be seen.
Paths in robots.txt are case-sensitive — /Page and /page are treated as different paths.
مقالة عن هذه الأداة: robots.txt: كيف تقرر روبوتات البحث ما يمكنها فهرسته
الأسئلة الشائعة
لماذا لا تحظر قاعدة Disallow الخاصة بي الصفحة التي توقعتها؟
تُطابَق قواعد robots.txt بالبادئة وليس بالصفحة الدقيقة، والقواعد الأكثر تحديدًا تتجاوز العامة — لن يحظر Disallow: /blog الصفحة /blog-archive ما لم تأخذ في الاعتبار كيفية عمل مطابقة البادئة فعليًا، ويمكن لقاعدة Allow في مكان آخر أن تتجاوز قاعدة Disallow أوسع.
هل يمنع robots.txt فعليًا فهرسة صفحة ما؟
ليس بشكل موثوق بمفرده. إنه يطلب فقط من الزواحف الملتزمة عدم جلب صفحة ما — يمكن أن تُفهرس صفحة محظورة (بدون محتواها) إذا ارتبطت بها صفحات أخرى، لذا استخدم وسم meta أو ترويسة noindex لضمان حقيقي.
هل يُرسَل محتوى robots.txt الخاص بي إلى أي مكان للتحقق منه؟
لا. يتم التحقق بالكامل في متصفحك — لا شيء يُرفَع إلى خادم.
هل يدعم Googlebot أحرف البدل * و$ في robots.txt؟
نعم — يدعم Google * كأي تسلسل من الأحرف و$ كنهاية للرابط، رغم أن هذا امتداد يتجاوز المواصفة الأصلية لعام 1994، لذا قد لا تتعرف عليها كل الروبوتات بالضرورة.
هل المسارات في robots.txt حساسة لحالة الأحرف؟
نعم — يُعامَل /Admin/ و/admin/ كمسارين مختلفين، لذا يجب أن تطابق قاعدة Disallow حالة الأحرف بدقة كما هي في روابط الموقع الفعلية.