{
  "protocol": "kkokk-ago-twin-v5",
  "type": "pillar_guide",
  "site": "143",
  "domain": "makerskorean.net",
  "slug": "zero-exposure-static-security",
  "lang": "en",
  "canonical_url": "https://makerskorean.net/en/blueprints/zero-exposure-static-security/",
  "language_urls": {
    "ko": "https://makerskorean.net/blueprints/zero-exposure-static-security/",
    "en": "https://makerskorean.net/en/blueprints/zero-exposure-static-security/",
    "ja": "https://makerskorean.net/ja/blueprints/zero-exposure-static-security/",
    "zh": "https://makerskorean.net/zh/blueprints/zero-exposure-static-security/",
    "es": "https://makerskorean.net/es/blueprints/zero-exposure-static-security/"
  },
  "published_at": "2026-11-19",
  "updated_at": "2026-11-30",
  "title": "Zero-Exposure Static Web Security Standard: Kernel chmod 750 Isolation & Nginx Hardening",
  "summary": "Preventing .env, .bak, and source-code leaks forever through physical root separation, Linux group permission locks, and preflight extension gates.",
  "tldr": "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]",
  "sections": [
    {
      "heading": "1. Technical Deep Dive & Measured Mechanism",
      "body": "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."
    },
    {
      "heading": "2. Technical Deep Dive & Measured Mechanism",
      "body": "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."
    },
    {
      "heading": "3. Technical Deep Dive & Measured Mechanism",
      "body": "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."
    },
    {
      "heading": "4. Field Verification Checklist, Pitfall Prevention & Continuous Audit",
      "body": "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."
    }
  ],
  "metrics": [
    [
      "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"
    ]
  ],
  "faqs": [
    {
      "q": "Is it safe to apply these settings directly on an active setup?",
      "a": "Yes—follow Section 4 by capturing a quick config backup or snapshot first and applying changes one parameter at a time."
    },
    {
      "q": "Are the benchmark tables identical across all five languages?",
      "a": "Yes, every table and technical note is embedded in our 5-language bundle for instant switching on desktop and mobile."
    }
  ]
}