3. Intellectual property
- Unless otherwise noted, the design, branding, and written content on CodeForge belong
- to the site owner. Open-source project code is governed by the license published in
- that project's own repository. Please don't reproduce written content from this site
- without permission or attribution.
+ Unless otherwise noted, the design, branding, written content, images, and watermarked
+ assets on CodeForge belong to the site owner. Open-source project code is governed by
+ the license published in that project's own repository.
+
+
+ You may view and share links to this content for personal, non-commercial use.
+ Reproducing, copying, screenshotting, redistributing, republishing, or using this
+ site's content — including images, articles, and project write-ups — for commercial
+ purposes or without permission or attribution is not allowed. Some pages on this site
+ display a privacy and copyright notice and visible watermarking as a reminder of these
+ terms; their absence on any given page does not waive these rights.
diff --git a/src/styles.css b/src/styles.css
index 4fe8077..50d2299 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -338,3 +338,43 @@ svg {
.prose-content tr:last-child td {
border-bottom: 0;
}
+
+/* ------------------------------------------------------------------ */
+/* Privacy & Copyright Protection Mode */
+/* Deterrence + legal-notice styling only — not access control. */
+/* ------------------------------------------------------------------ */
+
+/* Watermark overlay text on protected images. Text-shadow (rather than
+ relying on opacity alone) keeps it legible over both light and dark
+ image content without needing per-image contrast tuning. */
+.protected-image-watermark {
+ text-shadow:
+ 0 1px 2px rgba(0, 0, 0, 0.85),
+ 0 0 6px rgba(0, 0, 0, 0.5);
+}
+
+/* Visibility-based privacy blur, applied only inside the authenticated
+ admin/dashboard layout (see PrivacyBlur.tsx). Restores instantly when
+ the tab becomes visible again. This does not detect or prevent
+ screenshots — it only reacts to the tab losing browser focus. */
+.privacy-blur-active {
+ filter: blur(16px);
+ transition: filter 0.15s ease;
+ pointer-events: none;
+ user-select: none;
+}
+
+/* Print handling: keep the watermark and copyright notice visible in
+ printed/PDF output rather than letting print stylesheets silently
+ drop them, and never print a mid-blur frozen state. */
+@media print {
+ .privacy-blur-active {
+ filter: none;
+ }
+
+ .protected-image-watermark {
+ opacity: 1 !important;
+ color: rgba(0, 0, 0, 0.55) !important;
+ text-shadow: none;
+ }
+}
diff --git a/vercel.json b/vercel.json
index f05bdac..80f4fe8 100644
--- a/vercel.json
+++ b/vercel.json
@@ -29,6 +29,34 @@
"value": "max-age=31536000; includeSubDomains"
}
]
+ },
+ {
+ "source": "/admin",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
+ },
+ {
+ "source": "/admin/(.*)",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
+ },
+ {
+ "source": "/dashboard",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
+ },
+ {
+ "source": "/dashboard/(.*)",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
+ },
+ {
+ "source": "/auth",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
+ },
+ {
+ "source": "/mfa-setup",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
+ },
+ {
+ "source": "/mfa-verify",
+ "headers": [{ "key": "Cache-Control", "value": "no-store" }]
}
]
}