Browse Source

Added robots meta tag to inline version to prevent indexing.

n1474335 7 years ago
parent
commit
cb1fe80214
3 changed files with 1 additions and 8 deletions
  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/**",
                         src: "docs/**",
                         dest: "build/prod/"
                         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);
             window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 2000) + 1500);
         </script>
         </script>
         <% if (!htmlWebpackPlugin.options.inline) { %>
         <% if (!htmlWebpackPlugin.options.inline) { %>
+            <meta name="robots" content="noindex" />
             <script type="application/ld+json">
             <script type="application/ld+json">
                 <% print(JSON.stringify(require("../static/structuredData.json"))); %>
                 <% print(JSON.stringify(require("../static/structuredData.json"))); %>
             </script>
             </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