Added robots meta tag to inline version to prevent indexing.

This commit is contained in:
n1474335 2018-02-20 17:34:19 +00:00
parent 19f2e6dae0
commit cb1fe80214
3 changed files with 1 additions and 8 deletions

View file

@ -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"
}
] ]
} }
}, },

View file

@ -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>

View file

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