Skip to content

Commit

Permalink
更新 robots 內的規則
Browse files Browse the repository at this point in the history
增加更多不希望搜尋引擎去爬的頁面
  • Loading branch information
SoftwareSing committed Feb 28, 2019
1 parent da40f7a commit 544e895
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/http/robots.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import { Meteor } from 'meteor/meteor';

WebApp.connectHandlers.use('/robots.txt', (req, res) => {
let robotsTxt = `User-agent: * \n`;
robotsTxt += `Crawl-deslay: 4 \n`;
robotsTxt += `Disallow: /companyInfo* \n`;
robotsTxt += `Disallow: /productInfo* \n`;
robotsTxt += `Disallow: /userInfo* \n`;
robotsTxt += `Disallow: /company/edit/* \n`;
robotsTxt += `Disallow: /foundation/view/* \n`;
robotsTxt += `Disallow: /violation?offset=* \n`;
robotsTxt += `Disallow: /violation/view/* \n`;
robotsTxt += `Disallow: /violation/report* \n`;
robotsTxt += `Disallow: /fscLogs* \n`;
robotsTxt += `Crawl-deslay: 4 \n`;

This comment has been minimized.

Copy link
@frozenmouse

frozenmouse Feb 28, 2019

Contributor

typo?


robotsTxt += `\n`;
robotsTxt += `sitemap: https://${Meteor.settings.public.websiteInfo.domainName}/sitemap/sitemap-index.xml \n`;
Expand Down

0 comments on commit 544e895

Please sign in to comment.