【問題討論】─ 互動式的問題討論,加快問題解決處理
 首頁

 
   個人資料個人資料   登入檢查您的私人訊息登入檢查您的私人訊息  |  常見問題常見問題   搜尋搜尋   會員列表會員列表   會員群組會員群組 登入登入   會員註冊會員註冊 

設定 robots.txt 教學

 
發表新主題   回覆主題     首頁 -> 教學分享區
上一篇主題 :: 下一篇主題  
發表人 內容
how2use
站長
站長


註冊時間: 2003-11-22
文章: 695

發表發表於: 星期五 一月 12, 2007 3:08 pm    文章主題: 設定 robots.txt 教學 引言回覆

robots.txt 樣本:

User-agent: {Spider名}
Disallow: {File位置}

例:設定所有 robot 不能夠收集 /tmp/ 和 /download/ 目錄中的資料。

User-agent: *
Disallow: /tmp/
Disallow: /download/

例:設定所有 robot 不能夠收集 etc.htm 和 /index/work.html 中的資料。

User-agent: *
Disallow: /etc.htm
Disallow: /index/work.html

例:設定所有 robot 不能夠收集所有網頁資料。

User-agent: *
Disallow: /

例:設定 Google 不能夠收集 /tmp/ 目錄中的資料。

User-agent: Googlebot
Disallow: /tmp/

例:設定 Google 和 Excite 不能夠收集 /tmp/ 和 /index/work.html 目錄中的資料。

User-agent: Googlebot
User-agent: ArchitextSpider
Disallow: /tmp/
Disallow: /index/work.html

引言回覆:
搜尋引擎 -Robot 名稱
AltaVista- Scooter
Infoseek -Infoseek
Hotbot -Slurp
AOL Search -Slurp
Excite -ArchitextSpider
Google -Googlebot
Goto -Slurp
Lycos -Lycos
MSN -Slurp
Netscape -Googlebot
NorthernLight -Gulliver
WebCrawler -ArchitextSpider
Iwon -Slurp
Fast -Fast
DirectHit -Grabber
Yahoo Web Pages -Googlebot
Looksmart Web Pages -Slurp
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件 參觀發表人的個人網站
訪客






發表發表於: 星期一 六月 08, 2009 4:41 pm    文章主題: 引言回覆

請問有些資料夾是CP或是主機商建立的,前面大多有_下斜線

如:_private 等

這類有_下咧縣的資料夾會被機器人搜尋嗎???
回頂端
從之前的文章開始顯示:   
發表新主題   回覆主題     首頁 -> 教學分享區 所有的時間均為 台灣時間 (GMT + 8 小時)
1頁(共1頁)

 
前往:  
可以 在這個版面發表文章
可以 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票


Powered by phpBB © 2001, 2005 phpBB Group
正體中文語系由 phpbb-tw 維護製作