مولّد Robots.txt
أنشئ قواعد زحف أساسية ومرجع خريطة الموقع. لا يحمي ملف robots.txt الصفحات الخاصة ولا يزيل العناوين المفهرسة.
المدخلات
تلميح: اضغط Ctrl + Enter للتشغيل
الإعدادات المحفوظة
المساعدة المفصلة أدناه متاحة بالإنجليزية فقط حاليًا.
حول هذه الأداة
A robots.txt file at the root of your site asks search engine crawlers not to fetch certain paths, such as admin areas, shopping carts or internal search results, and tells them where your sitemap is. This generator writes a simple, valid file from a list of paths and your site address.
Robots.txt is a request, not a lock. It does not protect private pages (anyone can still open them), and a blocked page that is linked from elsewhere can still appear in search results without a description. Use authentication for privacy and a noindex tag for pages you want removed from results.
طريقة الاستخدام
- Enter your site’s home address, e.g. https://example.org/.
- List the paths to block, one per line, each starting with a slash.
- Generate the file.
- Save it as robots.txt in the root of your site so it is available at https://your-site/robots.txt.
كيف يعمل الحساب
The output contains "User-agent: *", one Disallow line per path you entered, and a Sitemap line pointing to /sitemap.xml on your domain.
User-agent + Disallow + Sitemapمثال تطبيقي
For https://example.org/ with /admin/, /cart/ and /search, the generator writes User-agent: *, three Disallow lines and Sitemap: https://example.org/sitemap.xml. Note that /search without a trailing slash also blocks /searching and /search-tips, because rules match by prefix.
مثال على الإدخال والنتيجة
User-agent: * Disallow: /admin/ Sitemap: https://example.com/sitemap.xml
القيود
- One rule group for all crawlers (User-agent: *).
- No Allow lines, wildcards or crawl-delay.
- The sitemap address is assumed to be /sitemap.xml.
آخر تحديث:
الأسئلة الشائعة
Will Disallow remove a page from Google?
No. To remove a page, let it be crawled and add a noindex tag, or remove the page. Blocking it in robots.txt prevents Google from seeing the noindex.
Should I block CSS and JavaScript?
No. Search engines need them to render pages properly.
What if my sitemap is elsewhere?
Edit the Sitemap line to the real location, such as /sitemap_index.xml.
استكشاف الأخطاء وإصلاحها
It asks for a complete web address.
Enter your home page address starting with https://.
Search Console says a page is "indexed, though blocked by robots.txt".
The page is linked from elsewhere. Remove the Disallow rule and add noindex if you want it out of results.
Changes are not picked up.
Crawlers cache robots.txt for up to about a day. Wait, or request a refresh in Search Console.
الخصوصية & مجاني
هل تُخزَّن مدخلاتي؟
تبقى مدخلاتك في علامة التبويب هذه. لا نتلقى ملفاتك أو النصوص الملصقة أو قيم الحسابات.
هل هذه الأداة مجانية؟
نعم. لا يلزم تسجيل أو دفع.
انظر أيضًا
خطوات تالية مفيدة
منسّق JSON ومدقّقه
تحقّق من JSON أو نسّقه أو صغّره محليًا. لا تُرسل البيانات غير الصالحة إلى أي خادم.
المطورون وتحسين محركات البحثمحوّل CSV إلى JSON
حوّل ترويسات وسجلات CSV إلى JSON مع دعم الفواصل بين علامات الاقتباس وفواصل الأسطر.
المطورون وتحسين محركات البحثمحوّل JSON إلى CSV
حوّل مصفوفة مسطّحة من الكائنات إلى CSV. تُضاف بادئة حماية إلى النصوص الشبيهة بالمعادلات عند الاستيراد إلى جداول البيانات.
المطورون وتحسين محركات البحث