-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (83 loc) · 3.33 KB
/
index.html
File metadata and controls
92 lines (83 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html lang="en" class="light">
<head>
<script>
if (window.location.hostname !== 'vector-ewgs.onrender.com') {
window.location.replace('https://vector-ewgs.onrender.com' + window.location.pathname + window.location.search);
}
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/assets/images/Logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#4f46e5" />
<title>Vector</title>
<!-- Security meta tags - temporarily commented out for debugging
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://*.firebaseio.com https://*.googleapis.com https://*.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https://*.googleapis.com; connect-src 'self' https://*.firebaseio.com https://*.googleapis.com https://*.firebase.com https://*.gstatic.com https://identitytoolkit.googleapis.com https://securetoken.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src 'self' https://*.firebaseapp.com https://accounts.google.com;">
-->
<meta name="referrer" content="no-referrer">
<!-- Disable browser caching -->
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate, max-age=0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<!-- Prevent file downloading and saving -->
<meta name="robots" content="noarchive">
<style>
/* Additional protections against selection and inspection */
body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Ensure login buttons and forms work properly */
button, input, select, textarea {
pointer-events: auto !important;
}
/* Hide from print */
@media print {
body {
display: none;
}
}
</style>
<script>
// Disable right-click except on form elements
document.addEventListener('contextmenu', function(e) {
// Allow context menu on input elements
if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA' ||
e.target.tagName === 'SELECT' || e.target.isContentEditable) {
return true;
}
e.preventDefault();
return false;
});
// Disable keyboard shortcuts
document.addEventListener('keydown', function(e) {
// F12, Ctrl+Shift+I, Ctrl+Shift+J, Ctrl+U
if (
e.keyCode === 123 ||
(e.ctrlKey && e.shiftKey && e.keyCode === 73) ||
(e.ctrlKey && e.shiftKey && e.keyCode === 74) ||
(e.ctrlKey && e.keyCode === 85)
) {
e.preventDefault();
return false;
}
});
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
// Safer detection for print attempts
window.addEventListener('load', function() {
// Detect print requests
window.addEventListener('beforeprint', function(e) {
e.preventDefault();
return false;
});
});
</script>
</body>
</html>