Panduan Meta Robots Tag

robots meta tag controls bagaimana sebuah halaman adalah terindeks dan disajikan — setiap directive, crawl-lalu-obey aturan, conflict resolution, dan meta tag vs X-Robots-Tag.

Pertama kali diterbitkan: 23 Jun 2026 · Terakhir diperbarui: 3 Agu 2026 · Lanjutan
1 sinyal bukti di halaman ini

robots meta tag — <meta name="robots" content="noindex"> di <head> — tells mesin pencari cara indeks dan sajikan single halaman. aturan itu breaks semuanya: ini adalah crawl-lalu-obey, so sebuah halaman blocked di robots.txt adalah tidak pernah fetched dan -nya noindex adalah tidak pernah seen. dengan Tidak tag, default adalah indeks, ikuti. Conflicting aturan resolve untuk paling restrictive; untuk sebuah googlebot-named tag terhadap generic robots tag, Googlebot takes sum dari negative aturan. tag adalah HTML-hanya — gunakan X-Robots-Tag header untuk PDFs, images, dan lainnya non-HTML.

TL;DR — <meta name="robots" content="…"> di <head> controls bagaimana sebuah single halaman adalah terindeks dan disajikan; dengan Tidak tag default adalah index, follow. ini adalah crawl-lalu-obey: “ini settings dapat menjadi baca dan followed hanya jika crawlers adalah diizinkan untuk access itu halaman” (terjemahan) “ini settings dapat menjadi baca dan diikuti hanya jika crawler adalah diizinkan untuk access halaman” — so sebuah robots.txt-blocked URL adalah tidak pernah fetched dan -nya noindex adalah tidak pernah seen (I memiliki pertama-party data pada flip side dari ini). Conflicting aturan resolve untuk sebagian besar restrictive; di seluruh sebuah googlebot tag dan generic robots tag, Googlebot takes sum dari negative aturan. tag adalah HTML-hanya — gunakan X-Robots-Tag header untuk non-HTML dan di scale. Google membaca hanya dua crawler-named tokens — googlebot dan googlebot-news — dan ignores setiap lainnya nilai, including lainnya mesin’ tokens like bingbot.

Bukti untuk klaim ini Google can read and follow page-level robots rules only when it is allowed to access the page. Cakupan: Google-supported robots meta and X-Robots-Tag rules; robots.txt blocking can prevent rule discovery. Tingkat keyakinan: tinggi · Diverifikasi: Google Search Central: Robots meta tag specifications

Apa ini adalah, di mana ini goes, dan default

robots meta tag lets Anda, di Google’s kata, “gunakan a granular, halaman-specific approach untuk controlling bagaimana an individual HTML halaman seharusnya menjadi indexed dan served untuk users di Google Search hasil.” (terjemahan) “gunakan granular, halaman-spesifik approach untuk controlling bagaimana sebuah individual HTML halaman seharusnya menjadi terindeks dan disajikan untuk pengguna di Google hasil pencarian.” conventional, portable place untuk ini adalah <head>:

<meta name="robots" content="noindex, nofollow">

Head placement adalah authoring convention setiap mesin expects, tetapi Google adalah jelas itu ini tidak sebuah hard requirement untuk Google Search secara khusus: “Google Search doesn’t enforce placement of meta robots in the HTML head and will respect robots meta tags in the body section of an HTML document as well.” (terjemahan) “Google Penelusuran tidak enforce placement dari meta robots di HTML head dan akan respect robots meta tags di body bagian dari sebuah HTML document sebagai well.” Treat itu sebagai tolerance untuk Google, tidak portable advice — masih author ini di <head> so setiap crawler dan validator itu expects standard placement membaca ini correctly.

«The name attribute is the audience, and this is where most guides overstate Google’s support. name="robots" addresses every crawler that reads the tag. Beyond that, Google supports exactly two crawler-named tokens, and ignores every other value: “Google supports two user agent tokens in the robots meta tag; other values are ignored: googlebot for all text results, and googlebot-news for news results.” A tag named name="bingbot" isn’t a documented Google control — Bing reads its own token on its own terms, but Google skips any name value it doesn’t recognize. Both the name and content attributes are case-insensitive to Google, and so are X-Robots-Tag header names and values. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian tujuh puluh tujuh, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

«When no robots meta tag is present, the default is index, follow (the all rule, which Google notes “has no effect if explicitly listed”). Bukti untuk klaim ini For Google, the default robots meta behavior is index, follow when no restrictive rule is present. Cakupan: Google-supported robots meta rules; other crawlers publish their own support and defaults. Tingkat keyakinan: tinggi · Diverifikasi: Google Search Central: Robots meta tag specifications You only need the tag to change that default. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian tujuh puluh delapan, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

«You combine rules two ways: comma-separated in one tag (noindex, nofollow) or as multiple <meta> tags. Google: you can “create a multi-rule instruction by combining robots meta tag rules with commas or by using multiple meta tags.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian tujuh puluh sembilan, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

aturan itu breaks semuanya: Google harus crawl halaman untuk see tag

ini adalah seluruh artikel. robots meta tag adalah crawl-lalu-obey. Google memiliki untuk fetch halaman untuk baca tag — so apa pun itu berhenti fetch berhenti tag dari ever menjadi applied. Straight dari spec:

“Keep di mind itu ini settings dapat menjadi baca dan followed hanya jika crawlers adalah diizinkan untuk access itu halaman itu include ini settings.” (terjemahan) “ingatlah itu ini settings dapat menjadi baca dan diikuti hanya jika crawler adalah diizinkan untuk access halaman itu sertakan ini settings.”

Bukti untuk klaim ini Google can read and follow page-level robots rules only when it is allowed to access the page. Cakupan: Google-supported robots meta and X-Robots-Tag rules; robots.txt blocking can prevent rule discovery. Tingkat keyakinan: tinggi · Diverifikasi: Google Search Central: Robots meta tag specifications

dan consequence, spelled out:

“Jika a halaman adalah disallowed dari crawling melalui itu robots.txt file, lalu any information tentang indexing atau serving rules akan tidak menjadi ditemukan dan akan karena itu menjadi ignored.” (terjemahan) “jika sebuah halaman adalah disallowed dari crawling melalui robots.txt file, lalu apa pun informasi tentang pengindeksan atau serving aturan akan tidak menjadi ditemukan dan akan karena itu menjadi ignored.”

«So the classic mistake — Disallow in robots.txt plus noindex on the same URL — silently defeats the noindex. Google never crawls the page, never sees the tag, and the URL can linger in the index (often as a bare, snippet-less result if something links to it). Google’s companion “Block Search Indexing” doc says the same thing in plainer language: for the noindex rule to work, the page “must not be blocked by a robots.txt file… If the page is blocked by a robots.txt file or the crawler can’t access the page, the crawler will never see the noindex rule, and the page can still appear in search results.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian delapan puluh lima, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

I’ve watched flip side dari ini mechanism happen dengan nyata data. di my experiment Story dari Blocking 2 tinggi-peringkat halaman dengan Robots.txt, I dengan sengaja blocked dua dari kami peringkat halaman di robots.txt. Karena Google dapat Tidak lebih lama crawl them, ini tidak dapat refresh apa pun tentang them — dan halaman mostly dipertahankan peringkat: “We lost a position di sini atau di sana dan all dari itu featured snippets untuk itu halaman.” (terjemahan) “kami lost sebuah position di sini atau di sana dan semua dari featured snippets untuk halaman.” My takeaway: “Accidentally blocking halaman (itu Google sudah ranks) dari menjadi crawled menggunakan robots.txt probably tidak going untuk memiliki banyak impact pada Anda rankings, dan they akan kemungkinan besar masih menunjukkan di itu penelusuran hasil.” (terjemahan) “Accidentally blocking halaman (itu Google sudah peringkat) dari menjadi di-crawl menggunakan robots.txt probably tidak going untuk memiliki banyak impact pada Anda rankings, dan mereka akan mungkin masih tampilkan di hasil pencarian.” itu’s yang sama coin sebagai noindex masalah — sebuah blocked URL adalah frozen. Block ≠ hapus. jika Anda sebenarnya ingin sebuah halaman hilang, Anda perlu sebuah dapat di-crawl noindex, yang adalah entire poin dari ini tag.

ini adalah line I’ve drawn publicly pada di mana setiap alat belongs. ditanyakan apakah Google seharusnya tambahkan noindex mendukung untuk robots.txt, I mengatakan: “Google adalah clear they ingin robots.txt untuk crawl control hanya.” (terjemahan) “Google adalah jelas mereka ingin robots.txt untuk crawl control hanya.” crawling adalah robots.txt’s job; pengindeksan adalah meta tag’s (atau header’s). mereka jangan overlap, dan noindex directive di robots.txt adalah tidak pernah officially didukung — Google dropped parsing dari ini pada September 1, 2019.

setiap robots meta directive ( reference)

Google’s didukung nilai, dengan verbatim deskripsi dari spec:

pengindeksan

«- all — “There are no restrictions for indexing or serving. This rule is the default value and has no effect if explicitly listed.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh dua, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.) «- noindex — “Do not show this page, media, or resource in search results.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh dua, bagian kecil dua: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.) «- none — “Equivalent to noindex, nofollow.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh dua, bagian kecil tiga: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.) «- indexifembedded — “Google is allowed to index the content of a page if it’s embedded in another page through iframes or similar HTML tags, in spite of a noindex rule.” (The one directive that overrides a noindex, for embedded content.) » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh dua, bagian kecil empat: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

tautan

  • nofollow — “Lakukan tidak follow itu links pada ini halaman.” (terjemahan) “melakukan tidak ikuti tautan pada ini halaman.” ini adalah halaman-tingkat — berbeda cakupan dari sebuah per-tautan rel="nofollow", yang applies untuk satu tautan.

Serving dan snippets

«- nosnippet — “Do not show a text snippet or video preview in the search results for this page.” This scope is broader than the classic text snippet: Google says it “applies to all forms of search results (at Google: web search, Google Images, Discover, AI Overviews, AI Mode) and will also prevent the content from being used as a direct input for AI Overviews and AI Mode.”

  • max-snippet:[number] — “Use a maximum of [number] characters as a textual snippet for this search result.” Same broadened scope as nosnippet: it “applies to all forms of search results (such as Google web search, Google Images, Discover, Assistant, AI Overviews, AI Mode) and will also limit how much of the content may be used as a direct input for AI Overviews and AI Mode.” That’s a direct-input eligibility control for Google’s own AI search features — it is not a general AI-training opt-out. Keeping your content out of model training (e.g. Google-Extended) or out of Search’s separate generative-AI property-level control in Search Console are different systems with different scopes; don’t treat nosnippet/max-snippet as covering either.
  • max-image-preview:[setting] — “Set the maximum size of an image preview for this page in search results.” Settings: none, standard, or large (“A larger image preview, up to the width of the viewport, may be shown.”).
  • max-video-preview:[number] — “Use a maximum of [number] seconds as a » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh enam, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.) « video snippet for videos on this page in search results.”
  • notranslate — “Don’t offer translation of this page in search results.”
  • noimageindex — “Do not index images on this page.”
  • unavailable_after:[date/time] — “Do not show this page in search results after the specified date/time.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh enam, bagian kecil dua: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

Historical — Tidak lebih lama active Google controls

sebuah sedikit directives itu masih circulate di older guides adalah ones Google says ini Tidak lebih lama menggunakan. jangan tambahkan ini expecting them untuk melakukan apa pun:

«- noarchive — “The noarchive rule is no longer used by Google Search to control whether a cached link is shown in search results, as the cached link feature no longer exists.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh sembilan, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.) «- nocache (a synonym some engines used for noarchive) — “The nocache rule isn’t used by Google Search.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh sembilan, bagian kecil dua: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.) «- nositelinkssearchbox — “The nositelinkssearchbox rule is no longer used by Google Search to control whether the sitelink search box is shown for a given page, as the feature no longer exists.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian sembilan puluh sembilan, bagian kecil tiga: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

paragraf-tingkat (tidak di meta tag)

ada satu sub-halaman control: data-nosnippet attribute. Google: Anda dapat “designate textual parts dari an HTML halaman tidak untuk menjadi digunakan sebagai a snippet… pada span, div, dan section elements.” (terjemahan) “designate textual bagian dari sebuah HTML halaman tidak untuk menjadi digunakan sebagai sebuah snippet… pada tidak terdefinisi, tidak terdefinisi, dan tidak terdefinisi elements.” Semuanya di meta tag adalah halaman-wide; nosnippet / data-nosnippet adalah bagaimana Anda pertahankan satu passage out dari snippet tanpa touching rest.

Combining directives dan resolving conflicts

Dua aturan govern apa happens ketika directives collide.

«1. The more restrictive rule wins. “In the case of conflicting robots rules, the more restrictive rule applies. For example, if a page has both max-snippet:50 and nosnippet rules, the nosnippet rule will apply.” nosnippet is stricter than a 50-character cap, so nosnippet is what you get. » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian seratus empat, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

2. googlebot vs robots — sum dari negative aturan. ini adalah satu sebagian besar guides mendapatkan wrong. sebuah googlebot-named tag melakukan tidak sekadar replace generic robots tag — untuk overlap, Googlebot takes union dari restrictions. Google: “Untuk situations di mana multiple crawlers adalah specified along dengan berbeda rules, itu penelusuran engine akan gunakan itu sum dari itu negative rules.” (terjemahan) “untuk situations di mana multiple crawler adalah specified along dengan berbeda aturan, mesin pencari akan gunakan sum dari negative aturan.” mereka worked contoh:

<meta name="robots" content="nofollow">
<meta name="googlebot" content="noindex">

“Itu halaman containing ini meta tags akan menjadi interpreted sebagai memiliki a noindex, nofollow rule when crawled by Googlebot.” (terjemahan) “ halaman containing ini meta tags akan menjadi interpreted sebagai having aturan noindex dan nofollow when di-crawl oleh Googlebot.” nofollow dari robots plus noindex dari googlebot tambahkan up untuk noindex, nofollow untuk Googlebot. (Di mana sebuah googlebot tag dan sebuah robots tag atur sama directive differently, crawler-named satu adalah satu itu applies untuk itu crawler.)

Meta robots tag vs X-Robots-Tag ( header HTTP)

«The robots meta tag is HTML-only — it needs a <head>. For anything that isn’t HTML, you use the X-Robots-Tag, which delivers the exact same rule vocabulary in the HTTP response header. Google: “The X-Robots-Tag can be used as an element of the HTTP header response for a given URL. Any rule that can be used in a robots meta tag can also be specified as an X-Robots-Tag.” And the reason it exists: “You can use the X-Robots-Tag for non-HTML files like image files where the usage of robots meta tags in HTML is not possible.” » (Terjemahan) (Ringkasan bahasa Indonesia untuk bagian seratus sembilan, bagian kecil satu: teks sumber dipertahankan agar dapat diperiksa dalam tinjauan penutur asli.)

So:

  • PDF, image, atau lainnya non-HTML? Anda dapat’t tambahkan sebuah <meta> tag — gunakan header, e.g. X-Robots-Tag: noindex.
  • Seluruh directories atau patterns? header adalah set di server/CDN tingkat, so ini scales untuk entire paths di satu config aturan.
  • Satu mesin? header dapat target sebuah crawler too: X-Robots-Tag: googlebot: noindex, nofollow, dan multiple X-Robots-Tag headers dapat menjadi combined di satu respons.

sama aturan, dua pengiriman mechanisms: meta tag untuk HTML halaman, header untuk semuanya else dan untuk scale.

Yang directives Bing dan lainnya mesin mendukung

jangan assume directive set adalah universal — ini tidak. Bing mendukung core pengindeksan dan serving aturan — noindex, nofollow, noarchive (dengan nocache sebagai -nya synonym), dan nosnippet — dan ini honors X-Robots-Tag untuk non-HTML resources. tetapi Bing melakukan tidak mendukung none shorthand, so untuk cross-mesin safety, tulis noindex, nofollow out explicitly alih-alih relying pada none. snippet- dan preview-control family — max-snippet, max-image-preview, max-video-preview — along dengan noimageindex, notranslate, indexifembedded, dan unavailable_after, adalah effectively Google-hanya. Ketika di doubt, spell directives out dan treat max-* controls sebagai Google fitur.

umum mistakes (dan memperbaiki)

  • Disallow + noindex pada yang sama URL. noindex adalah tidak pernah seen. Perbaiki: leave halaman dapat di-crawl; pertahankan hanya noindex.
  • noindex plus sebuah rel=canonical pointing elsewhere. Conflicting sinyal — Anda’re telling Google keduanya “drop this page” (terjemahan) “drop ini halaman” dan “consolidate it into another one.” (terjemahan) “consolidate ini ke lainnya satu.” Pick satu. (Lebih di canonicalization.)
  • sebuah staging-wide noindex shipped untuk production. Catastrophic, sitewide deindex. periksa sebelum launch.
  • sebuah noindex injected hanya oleh client-side JavaScript. Google memiliki untuk render halaman untuk see ini, dan jika dirender HTML differs dari apa Anda expect, perilaku differs too. Prefer tag di mentah HTML atau header. (See rendering.)
  • Expecting Bing untuk honor Google-hanya directives (none, max-* family).
  • Expecting sebuah robots directive untuk melakukan sebuah job ini tidak own. sebuah noindex atau nosnippet aturan tidak oleh itself jaminan crawl-budget savings, secrecy, sebuah peringkat perubahan, identical perilaku di seluruh mesin pencari, sebuah spesifik removal timeline, atau exclusion dari setiap AI/penelusuran surface — setiap dari itu outcomes belongs untuk sebuah berbeda control (authentication untuk secrecy, robots.txt untuk crawl, setiap mesin’s own docs untuk parity, Search Console atau Google-Extended untuk AI-spesifik scopes). Google memberikan Tidak fixed timeframe untuk ketika sebuah noindexed halaman sebenarnya drops out — ini bergantung pada recrawl priority dan “may take months” (terjemahan) “dapat take months” untuk sebuah lebih rendah-importance halaman.

untuk di mana ini sits di bigger picture: robots.txt dan crawling adalah crawl-control side; noindex dan pengindeksan adalah indeks-control side; dan nosnippet / data-nosnippet, max-snippet, dan max-image-preview adalah serving controls Anda reach untuk ketika Anda ingin sebuah halaman terindeks tetapi ingin untuk shape bagaimana ini muncul. X-Robots-Tag adalah ini sama tag’s HTTP-header equivalent untuk non-HTML.

Tambahkan catatan pakar

Sematkan kutipan pakar

Orang baru? Buat profilnya yang belum diklaim di /admin/experts/ → Sematkan kutipan pakar terlebih dahulu.