User-agent: * # 禁止爬蟲抓取後台與系統資料夾 Disallow: /admin/ Disallow: /bk/ Disallow: /draft/ Disallow: /ext/ Disallow: /module/ Disallow: /Templates/ # 禁止抓取特定的系統檔案 Disallow: /bundleconfig.json Disallow: /site.webmanifest.json Disallow: /test.php # 允許抓取主要資源(通常搜尋引擎會自動判斷,但可明確標示) Allow: /css/ Allow: /js/ Allow: /images/ Allow: /upload/