What a robots.txt file controls
Before a well-behaved crawler fetches a page, it reads /robots.txt at the root of the host. The file says which paths each crawler may request. It controls crawling, not indexing: a blocked URL can still appear in Google if other sites link to it. To keep a page out of search results, let it be crawled and add a noindex tag instead.
Each subdomain needs its own file. https://blog.example.com/robots.txt is separate from https://example.com/robots.txt, and a file in a subfolder is ignored.
How to create a custom robots.txt file
Most sites need only a few lines: one group for all crawlers that blocks private or duplicate areas, and a Sitemap line. Add a named group only when one crawler needs different rules.
A common starting point for a blog or business site, including a custom robots.txt for Blogger or WordPress:
- User-agent: * with Disallow lines for admin, login, cart, checkout and internal search result pages.
- No rules that block CSS, JavaScript or image folders: Google needs them to render the page.
- A Sitemap line with the full URL of your sitemap or sitemap index.
- For Blogger, paste the result into Settings, Crawlers and indexing, Custom robots.txt. For WordPress, upload the file to the site root or paste it into your SEO plugin's robots.txt editor.
Robots.txt rules for AI crawlers
AI companies publish the user-agent names their crawlers use, so you can allow or block each one. GPTBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot (Perplexity) and CCBot (Common Crawl) each read their own group, and Google-Extended controls whether Google may use your content for Gemini.
Blocking a crawler is a trade-off. It keeps your pages out of that company's crawls, but it can also keep them out of the answers its assistant builds from crawled pages. Decide per bot, and check later which bots actually visit.
لماذا تحتاج إلى منشئ Robots.txt مخصص في عام 2026
تساعدك أداة إنشاء ملف robots.txt المجانية الخاصة بنا في إنشاء ملفات robots.txt مناسبة لموقعك الإلكتروني.
تُعد ملفات Robots.txt ضرورية للتحكم في كيفية زحف محركات البحث إلى موقعك ويمكن أن تؤثر بشكل كبير على أداء تحسين محركات البحث (SEO) لديك.
كيفية استخدام منشئ ملف robots.txt هذا
لإنشاء ملف robots.txt، ما عليك سوى اختيار روبوتات الويب التي تريد السماح لها أو حظرها.
يقوم منشئ ملفات robots.txt الخاص بنا بعد ذلك بإنشاء الكود لتتمكن من نسخه ولصقه.
كيفية إنشاء ملفات Robots.txt لحظر برامج جمع البيانات بالذكاء الاصطناعي (GPTBot و ClaudeBot)
مع تزايد استخدام وكلاء الذكاء الاصطناعي، أصبح حظر أدوات جمع البيانات مثل GPTBot و ClaudeBot و OpenAI-SearchBot
أكثر أهمية من أي وقت مضى لحماية ملكيتك الفكرية. تساعدك أداةنا على إنشاء
توجيهات مخصصة لهذه الزحّافات الحديثة بسهولة.
الميزات الرئيسية
- إعداد سهل: Simple interface to set up directives
- قوالب جاهزة: Quick templates for common use cases
- توجيهات مخصصة: Add custom allow, disallow, and other directives
- إنشاء فوري: Get your robots.txt file ready for upload
- لا يتطلب تسجيل: Use the tool immediately without signing up
حالات الاستخدام الشائعة
- السماح لجميع الزحّافات بالوصول إلى موقعك
- حظر الوصول إلى مناطق الإدارة والمحتوى الخاص
- التحكم في زحف نقاط نهاية واجهة برمجة التطبيقات (API)
- تعيين تأخيرات الزحف لحماية الخادم
- الإشارة إلى خريطة موقعك بصيغة XML
كيفية استخدام ملف Robots.txt الذي تم إنشاؤه
- قم بتنزيل ملف robots.txt المُنشأ
- قم بتحميله إلى الدليل الجذر لموقعك الإلكتروني (على سبيل المثال: yourdomain.com/robots.txt)
- راقب إحصاءات زحف موقعك
أفضل الممارسات
- اجعل ملف robots.txt الخاص بك بسيطاً وواضماً
- اختبر ملف robots.txt قبل نشره
- لا تستخدم ملف robots.txt لإخفاء معلومات حساسة
- قم تضمين رابط خريطة الموقع (sitemap) الخاص بك في ملف robots.txt
- استخدم تأخيرات زحف مناسبة للمواقع الكبيرة