robots.txt
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://tldfyi.com/iframe/glossary/robots-txt/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://tldfyi.com/glossary/robots-txt/
Add a dynamic SVG badge to your README or docs.
[](https://tldfyi.com/glossary/robots-txt/)
Use the native HTML custom element.
robots.txt هو ملف نصي عادي يوضع في جذر النطاق (مثل example.com/robots.txt) يُخبر فيه روبوتات الزحف الممتثلة بأجزاء الموقع التي يمكنها أو لا يمكنها الوصول إليها. يستخدم توجيهات بروتوكول استبعاد الروبوتات مثل User-agent وDisallow وAllow. يوفّر حجب الأقسام عبر robots.txt ميزانية الزحف للصفحات المهمة، لكن الصفحات المحجوبة لا يمكن فهرستها حتى لو كان لها [[backlinks|روابط واردة]] — مما يجعل الحجب المفرط خطأ SEO شائعاً. يجب أن يُعلن الملف أيضاً عن موقع [[sitemap-domain|خريطة الموقع XML]] لاكتشاف الزاحف.
مثال
Adding 'Disallow: /admin/' to robots.txt prevents Google from crawling internal admin pages, while 'Sitemap: https://example.com/sitemap.xml' advertises the sitemap location to all crawlers.