Preventing .env, .bak, and source-code leaks forever through physical root separation, Linux group permission locks, and preflight extension gates. [Layer 1 (Build Gate): 11 forbidden extensions blocked · Layer 2 (OS Kernel): /var/www/html_old chmod 750 · Layer 3 (Nginx): Dotfiles & script exts -> 404]
Zero-Exposure Static Web Security Standard: Kernel chmod 750 Isolation & Nginx Hardening
Preventing .env, .bak, and source-code leaks forever through physical root separation, Linux group permission locks, and preflight extension gates.
Relying solely on Nginx regex rules leaves room for misconfiguration. Moving legacy archives outside the web root into /var/www/html_old with chown kkokkmakn:kkokkmakn and chmod 750 makes them unreadable to www-data at the Linux kernel level.
Python builders and internal endpoints live exclusively on Node 104; production web servers receive only pre-verified static HTML, CSS, JS, XML, and WebP files.
Preflight aborts immediately if any forbidden extension enters dist/, and post-deploy smoke checks probe /.env, /config.py, and /html_old/ over live HTTPS to confirm 404 enforcement.
Deploying this workflow across KKOKK+W (makerskorean.net) proved that the most reliable engineering discipline is 'record baseline -> adjust one variable at a time -> run automated smoke verification'. Changing multiple parameters simultaneously obscures root causes. Use the benchmark matrix below as your starting reference, tune incrementally for your specific hardware, and re-verify latency, memory footprint, and 0.00 CLS stability after every change.
Measured Key Metrics & Benchmark Matrix
| Parameter / Audit Item | Measured Spec / Value | Operational Impact & Notes |
|---|---|---|
| Layer 1 (Build Gate) | 11 forbidden extensions blocked | Scanned by preflight_check.js |
| Layer 2 (OS Kernel) | /var/www/html_old chmod 750 | www-data Permission denied |
| Layer 3 (Nginx) | Dotfiles & script exts -> 404 | autoindex off, symlinks disabled |
| Auth File Guard | rsync --exclude ads.txt/google* | Preserves AdSense verification |
Frequently Asked Technical Questions (FAQ)
Yes—follow Section 4 by capturing a quick config backup or snapshot first and applying changes one parameter at a time.
Yes, every table and technical note is embedded in our 5-language bundle for instant switching on desktop and mobile.