浏览代码

Added robots meta tag to inline version to prevent indexing.

n1474335 7 年之前
父节点
当前提交
cb1fe80214
共有 3 个文件被更改,包括 1 次插入8 次删除
  1. 0 4
      Gruntfile.js
  2. 1 0
      src/web/html/index.html
  3. 0 4
      src/web/static/robots.txt

+ 0 - 4
Gruntfile.js

@@ -379,10 +379,6 @@ module.exports = function (grunt) {
                         src: "docs/**",
                         dest: "build/prod/"
                     },
-                    {
-                        src: "src/web/static/robots.txt",
-                        dest: "build/prod/robots.txt"
-                    }
                 ]
             }
         },

+ 1 - 0
src/web/html/index.html

@@ -88,6 +88,7 @@
             window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 2000) + 1500);
         </script>
         <% if (!htmlWebpackPlugin.options.inline) { %>
+            <meta name="robots" content="noindex" />
             <script type="application/ld+json">
                 <% print(JSON.stringify(require("../static/structuredData.json"))); %>
             </script>

+ 0 - 4
src/web/static/robots.txt

@@ -1,4 +0,0 @@
-user-agent: *
-disallow: /cyberchef.htm
-
-sitemap: https://gchq.github.io/CyberChef/sitemap.xml