賴jkf6688奶茶各行各業高檔頂級兼職美女全套外約外送服務

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 2|回復: 0

Googlebot ignores less specific user

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2024-2-20 13:49:31 | 顯示全部樓層 |閱讀模式
Disallow: / User-agent: Googlebot Allow: / Note that the robots.txt file can contain as many user agent directives as you like. That said, every time you declare a new user agent, it works as a clean slate. This means that if you add directives to multiple user agents, directives declared for the first user agent will not apply to the second, third, fourth, etc. The exception to this rule is when declaring the same user agent multiple times. In that case, all related directives are combined and executed. Important notes Crawlers follow only the most precisely applicable rules declared in the user agent . Therefore, the robots.txt file above will block all bots except Googlebot (and other Google bots) from crawling your site.



Googlebot ignores less specific user agent declarations. Directives Directives are rules that you want the declared user Australia Phone Number Data agent to follow. Supported directives Here are the directives that Google currently supports and their uses. Disallow Use this directive to tell search engines not to visit files or pages belonging to a specific path. For example, if you want to prevent all search engines from accessing your blog and all of its posts, your robots.txt file might look like this: User-agent: * Disallow: /blog Note : If you don't define a path after the disallow directive, search engines will ignore it. Allow This directive allows search engines to crawl subdirectories or pages (even within directories where they are normally not allowed).


       


For example, if you want to prevent search engines from accessing all posts on your blog except for one page, your robots.txt file might look like this: User-agent: * Disallow: /blog Allow: /blog/allowed-post In this example, search engines /blog/allowed-postcan access. However, you cannot access the following: /blog/another-post /blog/yet-another-post /blog/download-me.pdf Both Google and Bing support this directive. Note : Similar to the Disallow directive, if you do not define a path after the Allow directive, search engines will ignore it. Notes on conflicting rules If not written carefully, Disallow and Allow directives can easily conflict with each other. The following example /blog/ prohibits access to and /blog allows access to .


回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|賴jkf6688奶茶各行各業高檔頂級兼職美女全套外約外送服務

GMT+8, 2025-5-14 06:33 , Processed in 0.605008 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |