嘗試變更 Robots.txt 來改善流量消耗問題

無法顯示網頁終於復活了,雖然只有停擺短短的幾天,但總算讓我嘗到流量耗盡所帶來的痛苦。不過,這期間倒是讓我對於 Robots.txt 有了更深一層的認識,這個月我決定暫時不做更換主機商的動作,我要好好觀察一下 Robots.txt 是不是可以改善流量消耗的問題。有這方面經驗的朋友,也請不要羞於分享您與 Robots.txt 的閨房秘辛唷!

記得流量即將耗盡的時候,曾透過管理介面查詢到底是誰偷走了我的流量?查詢後的結果發現,絕大部分的流量都是被搜尋引擎機器人給偷走,其中最誇張的百度搜尋引擎,不知是食髓知味還是怎樣?每天固定來偷個好幾回,根本是吃飽太閒。

以下是修改後的 Robots.txt 檔案,其中最大的差異就是完全禁止百度搜尋引擎機器人〈baiduspider〉靠近無法顯示網頁,希望此舉可以稍微改善流量消耗的問題。

 User-agent: *
 Disallow: /wp-includes/
 User-agent: baiduspider
 Disallow: /
 User-agent: Gaisbot
 Disallow: /
 User-agent: MSNBot-Media
 Disallow: /
 User-agent: Slurp
 Crawl-delay: 10
 User-agent: Yahoo-Blogs/v3.9
 Crawl-delay: 20

Related Posts with Thumbnails
相關文章
  • No Related Post

This entry was posted on Sunday, July 1st, 2007 at 1:20 am and is filed under 部落格記事. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

14 Responses to 嘗試變更 Robots.txt 來改善流量消耗問題

  1. Comment by 白色飛魚

    對嘛,那個數百度來訪的百度,至少留個言再走嘛!

  2. Comment by helenna

    備受青睞的感覺也不怎麼爽! :twisted:
    恭喜復活了

  3. Comment by 小賴

    慶祝小米回歸,
    小米請大家喝小米酒喔~~~~~ :oops:

  4. Comment by 張CC

    對阿~~這幾天開不了你的網頁
    以為你貼色情圖片被抓去關了勒~~ :sad:

    • Comment by 無法顯示網頁

      貼色情圖片被抓去關咧?
      哇~ 你消失好一陣子了,前幾天發表了幾天登山的文章~
      挺不錯的!重點是~ 辣妹應該蠻多的吧? :great:

  5. Comment by Dreamy

    恭喜復活!
    接下來要請教你了。
    Robots.txt 要如何設定啊?怎麼使用?

    • Comment by 無法顯示網頁

      Robots.txt 要如何設定?
      關於這個問題,我還真的不曉得該怎麼回答耶!
      目前我的 Robots.txt 敘述需要一些時間來觀察效果好不好,
      所以~ 我也不知道目前的設定是否洽當? :shock:

  6. Comment by olivia

    這篇…..我看不懂……

  7. Pingback: 花水木 HANAMITSUKI

  8. Comment by Retsu

    測試看看

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>