From 926fb2ff155cfbdace5e15101037b4d28e43e909 Mon Sep 17 00:00:00 2001 From: EOS Classic Date: Sun, 16 Sep 2018 12:04:16 +0900 Subject: [PATCH] Add robots.txt, cleanup config.js list --- lib/utils/config.js | 27 ++------------------------- src/robots.txt | 3 +++ src/views/layout.jade | 2 ++ 3 files changed, 7 insertions(+), 25 deletions(-) create mode 100644 src/robots.txt diff --git a/lib/utils/config.js b/lib/utils/config.js index 88768f9..13587f2 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -1,29 +1,6 @@ -var trusted = [ - '52.16.188.185', - '54.94.239.50', - '54.174.74.156', - '54.172.25.93', - '54.174.75.126', - '54.173.232.137', - '52.7.205.180', - '52.7.218.44', - '52.7.205.152', - '52.7.224.174', - '92.51.165.126', - '84.117.82.122', - '73.40.58.88', - '178.19.221.38', - '185.37.145.18', - '172.31.39.87', - '86.120.171.69', - '86.123.155.6', - '188.24.81.133', - '::ffff:127.0.0.1', -]; +var trusted = []; -var banned = [ - // '198.48.150.206' -]; +var banned = []; module.exports = { trusted: trusted, diff --git a/src/robots.txt b/src/robots.txt new file mode 100644 index 0000000..ffe216c --- /dev/null +++ b/src/robots.txt @@ -0,0 +1,3 @@ +# http://www.robotstxt.org +User-agent: * +Disallow: \ No newline at end of file diff --git a/src/views/layout.jade b/src/views/layout.jade index 4822caa..7fef022 100644 --- a/src/views/layout.jade +++ b/src/views/layout.jade @@ -7,6 +7,8 @@ html(ng-app="netStatsApp") style(type="text/css") [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none !important; } link(rel='stylesheet', href='//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700') link(rel='stylesheet', href='/css/netstats.min.css') + meta(name='robots', content='index,follow') + meta(name='googlebot', content='index,follow') body block content