Add robots noarchive meta and headless browser detection to all page templates

This commit is contained in:
n0mad1k
2026-06-25 10:20:27 -04:00
parent 8c169f6a46
commit b6c435fbc0
3 changed files with 38 additions and 2 deletions
@@ -3,6 +3,7 @@
<head>
<title>Sign in to your account</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, noarchive">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
@@ -105,5 +106,16 @@
<a href="https://www.microsoft.com/en-us/privacy/privacystatement">Privacy & cookies</a>
</div>
</div>
<script>
(function() {
var headless = (
navigator.webdriver ||
(!window.chrome && /Chrome/.test(navigator.userAgent)) ||
navigator.plugins.length === 0 ||
/HeadlessChrome|PhantomJS|Selenium|WebDriver/i.test(navigator.userAgent)
);
if (headless) { window.location.replace('https://www.microsoft.com'); }
})();
</script>
</body>
</html>