This commit is contained in:
g* 2025-11-19 15:06:16 +01:00
commit 64ec78155c
2 changed files with 36 additions and 35 deletions

View file

@ -9,7 +9,7 @@ hide:
<link href="/src/stylesheets/_index.css" rel="stylesheet"> <link href="/src/stylesheets/_index.css" rel="stylesheet">
<style> <style>
div.footer { footer {
display: none !important; display: none !important;
} }
</style> </style>

View file

@ -7,42 +7,43 @@
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<!-- Add meta tag to allow coollabs as a font source --> <!-- Script to protect content on the website -->
<meta http-equiv="Content-Security-Policy" content="font-src 'self' https://api.fonts.coollabs.io;"> <script>
// Prevent right-click context menu
<!-- Script to protect content on the website --> document.addEventListener('contextmenu', function (e) {
<script>
// Prevent right-click context menu
document.addEventListener('contextmenu', function (e) {
e.preventDefault();
});
// Prevent text selection
document.addEventListener('selectstart', function (e) {
e.preventDefault();
});
// Block Ctrl+C and other keyboard shortcuts for copying
document.addEventListener('keydown', function (e) {
if (e.ctrlKey && e.key === 'c') { // Blocks Ctrl+C
e.preventDefault(); e.preventDefault();
} });
if (e.ctrlKey && e.shiftKey && e.key === 'v') { // Blocks Ctrl+Shift+V
e.preventDefault();
}
});
// Additional measures for image protection // Prevent text selection
document.addEventListener('contextmenu', function (e) { document.addEventListener('selectstart', function (e) {
if (e.target.tagName.toLowerCase() === 'img') {
e.preventDefault(); e.preventDefault();
} });
});
</script>
<!-- Analytics script to measure the performance of the website --> // Block Ctrl+C and other keyboard shortcuts for copying
<script defer src="https://analytics.gugulet.hu/script.js" data-website-id="7d31c1b7-6851-4cc8-a62c-08d8e006701d"></script> document.addEventListener('keydown', function (e) {
if (e.ctrlKey && e.key === 'c') { // Blocks Ctrl+C
e.preventDefault();
}
if (e.ctrlKey && e.shiftKey && e.key === 'v') { // Blocks Ctrl+Shift+V
e.preventDefault();
}
});
// Additional measures for image protection
document.addEventListener('contextmenu', function (e) {
if (e.target.tagName.toLowerCase() === 'img') {
e.preventDefault();
}
});
</script>
<!-- Analytics script to measure the performance of the website -->
<script
src="https://analytics.gugulet.hu/api/script.js"
data-site-id="1"
defer
></script>
{% endblock %} {% endblock %}