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 adalah file teks biasa yang ditempatkan di akar domain (misalnya example.com/robots.txt) yang memberi tahu perayap web yang patuh bagian mana dari situs yang boleh atau tidak boleh diakses. Menggunakan direktif Protokol Pengecualian Robot seperti User-agent, Disallow, dan Allow. Memblokir bagian melalui robots.txt menghemat anggaran perayapan untuk halaman penting, tetapi halaman yang diblokir tidak dapat diindeks meski memiliki [[backlinks|backlink]] — sehingga pemblokiran berlebihan adalah kesalahan SEO yang umum. File juga harus mendeklarasikan lokasi [[sitemap-domain|sitemap XML]] untuk penemuan perayap.
Contoh
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.