← back to Flockedwallpaper
Add clean /privacy route/rewrite (AdSense)
cb7a2b8e4daebb75fdfbc3ac933cdc5e0e291b2b · 2026-09-10 11:56:24 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit cb7a2b8e4daebb75fdfbc3ac933cdc5e0e291b2b
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 10 11:56:24 2026 -0700
Add clean /privacy route/rewrite (AdSense)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
server.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/server.js b/server.js
index f78e58d..5742cd7 100644
--- a/server.js
+++ b/server.js
@@ -104,6 +104,7 @@ const server = http.createServer((req, res) => {
// Confine all file serving to the project root — block path traversal
const root = __dirname;
+ if (requestPath === '/privacy') requestPath = '/privacy.html';
const filePath = path.join(root, requestPath);
if (filePath !== root && !filePath.startsWith(root + path.sep)) {
res.writeHead(403, { 'Content-Type': 'text/html' });
← 96fdcef Add privacy footer link (AdSense discoverability)
·
back to Flockedwallpaper
·
front-page-steward: wire ux-primitives Bundle-B (toast+copy 31033ad →