如要將網站上的多張圖片從 Google 的索引中移除,請為每張圖片新增 disallow 規則,如果圖片具有共通的模式 (例如檔案名稱的後置字串),請在檔案名稱中使用 * 字元。例如:
User-agent: Googlebot-Image
# Repeated 'disallow' rules for each image:
Disallow: /images/dogs.jpg
Disallow: /images/cats.jpg
Disallow: /images/llamas.jpg
# Wildcard character in the filename for
# images that share a common suffix. For example,
# animal-picture-UNICORN.jpg and
# animal-picture-SQUIRREL.jpg
# in the "images" directory
# will be matched by this pattern.
Disallow: /images/animal-picture-*.jpg
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-04 (世界標準時間)。"],[[["\u003cp\u003eRemove images from Google Search quickly using the Removals tool for emergencies, but note that images may reappear unless removed from your site or blocked.\u003c/p\u003e\n"],["\u003cp\u003eFor non-emergency removals, prevent images from appearing in Google Search using robots.txt disallow rules or the \u003ccode\u003enoindex\u003c/code\u003e \u003ccode\u003eX-Robots-Tag\u003c/code\u003e HTTP header, choosing the method best suited for your site.\u003c/p\u003e\n"],["\u003cp\u003eUse robots.txt to control which images Google can index by specifying rules for individual images, file types, or all images on your site within the robots.txt file.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, utilize the \u003ccode\u003enoindex\u003c/code\u003e \u003ccode\u003eX-Robots-Tag\u003c/code\u003e HTTP header to remove images from Google Search, ensuring Googlebot can crawl the image URLs to extract the rule.\u003c/p\u003e\n"],["\u003cp\u003eRefer to Google Search help documentation for guidance on removing images from properties you don't own.\u003c/p\u003e\n"]]],["To remove images from Google Search, use the Removals tool for quick removal, but note images may reappear. For a lasting solution, use `robots.txt` rules or the `noindex` `X-Robots-Tag` HTTP header. `robots.txt` blocks images using file paths or wildcards, and applies to all search engines. The `noindex` header prevents indexing but requires Googlebot to crawl the URLs. For images on others' sites, refer to Google's help documentation.\n"],null,["# Remove your own site's images from Google Search | Google Search Central\n\nRemove images hosted on your site from search results\n=====================================================\n\n| Trying to **remove images of yourself** ? See [Remove your personal information from Google](https://support.google.com/websearch/troubleshooter/3111061) instead.\n\nFor emergency image removal\n---------------------------\n\n\nTo quickly remove images hosted on your site from Google's search results, use the\n[Removals tool](https://support.google.com/webmasters/answer/9689846#zippy=%2Cimage-url).\nKeep in mind that unless you also remove the images from your site or otherwise block the images\nas described in the [non-emergency image removal section](#non-emergency-image-removal),\nthe images may resurface in Google's search results once the removal request expires.\n\nFor non-emergency image removal\n-------------------------------\n\n\nThere are two ways to remove images from your site from Google's search results:\n\n- [robots.txt disallow rules](#robotstxt)\n- [The `noindex` `X-Robots-Tag` HTTP header](#noindex)\n\n\nThe two methods have the same effect, choose the method that is more convenient for your site.\nKeep in mind that Googlebot has to crawl the URLs to extract the HTTP headers, so implementing\nboth methods at the same time doesn't make sense.\n\n\nIf you don't have access to the site that's hosting your images (for example a CDN) or your CMS\ndoesn't provide a way to block images with the `noindex` `X-Robots-Tag` HTTP\nheader or robots.txt, you might need to delete the images altogether from your site.\n\n### Remove images using robots.txt rules\n\n\nTo prevent images from your site appearing in Google's search results, add a\n[robots.txt](/search/docs/crawling-indexing/robots/intro) file to the root of the\nsite that hosts the image, for example `https://yoursite.example.com/robots.txt`. While\nit takes longer to remove an image from Google's search results using robots.txt rules than it\ndoes to use the Removals tool, it gives you more flexibility and control through the use of\nwildcards or subpath blocking. It also applies to all search engines, whereas the Removals tool\nonly applies to Google.\n\n\nFor example, if you want Google to exclude the `dogs.jpg` image that appears on your\nsite at `yoursite.example.com/images/dogs.jpg`, add the following to your robots.txt\nfile: \n\n```\nUser-agent: Googlebot-Image\nDisallow: /images/dogs.jpg\n```\n\n\nThe next time Google crawls the `dogs.jpg` image, we'll see this rule and drop your\nimage from our search results.\n\n\nRules may include\n[special characters](/search/docs/crawling-indexing/robots/robots_txt#url-matching-based-on-path-values)\nfor more flexibility and control. Specifically, the `*` character matches any sequence\nof characters which lets you to match multiple image paths with one rule.\n\n\nTo remove multiple images on your site from Google's index, add a `disallow` rule for\neach image, or if the images share a common pattern such as a suffix in the filename, use a\nthe `*` character in the filename. For example: \n\n```\nUser-agent: Googlebot-Image\n# Repeated 'disallow' rules for each image:\nDisallow: /images/dogs.jpg\nDisallow: /images/cats.jpg\nDisallow: /images/llamas.jpg\n\n# Wildcard character in the filename for\n# images that share a common suffix. For example,\n# animal-picture-UNICORN.jpg and\n# animal-picture-SQUIRREL.jpg\n# in the \"images\" directory\n# will be matched by this pattern.\nDisallow: /images/animal-picture-*.jpg\n```\n\n\nTo remove all the images on your site from our index, place the following rule in your robots.txt\nfile: \n\n```\nUser-agent: Googlebot-Image\nDisallow: /\n```\n\n\nTo remove all files of a specific file type (for example, to include `.jpg` but not\n`.gif` images), you'd use the following robots.txt entry: \n\n```\nUser-agent: Googlebot-Image\nDisallow: /*.gif$\n```\n\n\nBy specifying `Googlebot-Image` as the `User-agent`, the images will be\nexcluded from Google Images. If you would like to exclude the images from all Google searches\n(including Google Search and Google Images), specify the `Googlebot` user agent.\n\n### Remove images with the `noindex` `X-Robots-Tag` HTTP header\n\n\nAlternatively, you can remove images hosted on your site from Google's search results by\nadding the `noindex` `X-Robots-Tag` to the HTTP response headers of the\nimages you want to remove. In this case you must allow crawling the image URLs in order for\nGooglebot to be able to extract the `noindex` rule. To implement the\n`noindex` `X-Robots-Tag` HTTP response header,\n[follow our documentation about `noindex`](/search/docs/crawling-indexing/robots-meta-tag#xrobotstag-implementation).\n\n\nNote that adding the `noimageindex` robots tag to a particular page will also prevent\nthat images embedded in that page from getting indexed. However, if the same images also appear in\nother pages, they might get indexed through those pages. To make sure a particular image is\nblocked no matter where it appears, use the `noindex` `X-Robots-Tag` HTTP\nresponse header.\n\nHow do I remove images from properties that I don't own?\n--------------------------------------------------------\n\n\nSee the\n[Google Search help documentation on how to remove an image from search results](https://support.google.com/websearch/answer/4628134)."]]