This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
|
// @flow
|
|
import { type Context } from "koa";
|
|
|
|
const DISALLOW_ROBOTS = `User-agent: *
|
|
Disallow: /`;
|
|
|
|
export const robotsResponse = (ctx: Context): ?string => {
|
|
if (ctx.headers.host.indexOf("getoutline.com") < 0) return DISALLOW_ROBOTS;
|
|
};
|