01 · Isolated Webroot (/public)
Only public/ is exposed to HTTP. PHP source code (src/), SQLite databases, data/.env and raw media folders stay outside the webroot.
CineSKU isolates secrets and databases outside the webroot, locks streaming to allowlisted domains, throttles abusive traffic and validates every uploaded MP4 and WebP binary server-side.
Designed to protect proprietary product videos from bandwidth theft and harden ERP/PIM integrations.
Only public/ is exposed to HTTP. PHP source code (src/), SQLite databases, data/.env and raw media folders stay outside the webroot.
Domain allowlist (supports *.domain.com wildcards) enforced on media.php (HTTP 206), CSP frame-ancestors on embed.php and auto-synced Apache rules.
Least-privilege scopes: read (storefront), read,write (PIM/ERP) and admin. Master key never exposed in DOM; HttpOnly SameSite=Lax cookies + X-CSRF-Token.
60s sliding windows (read, write, track, pre-auth login) plus ISO-BMFF MP4 box inspection (H.264 avc1, dimensions, bitrate) and GD WebP re-encoding.
Scrapers or third-party sites embed your direct MP4 URLs on external pages.
Non-allowlisted origins receive 403 Forbidden on both video streams and iframe embeds.
A single storefront key exposes write or delete access to the entire catalog.
Secondary keys scoped strictly to read with optional domain locks and hourly quotas.
Non-H.264 exports or spoofed thumbnails break Safari/iOS playback.
Server-side ISO-BMFF H.264 validation and mandatory GD WebP thumbnail re-encoding.
embed-player.js verifies e.source === window.parent and e.origin against allowlisted domains before running commands.
Clean separation across studio.sqlite, analytics.sqlite and ratelimit.sqlite in WAL mode.
Specifications & Practices
Hosted in France/EU or on your own servers: zero third-party access to your raw media or traffic.
The .env master API key is never injected into admin HTML or JavaScript.
Login and API auth rate limits trigger before secret verification.
Allowlist updates automatically refresh data/videos/.htaccess without touching public/.
Deploy cleanly on French/EU providers or private dedicated servers.
CineSKU protects e-commerce video delivery across 4 layers: physical /public webroot isolation, domain-locked anti-hotlink (Origin/Referer, CSP frame-ancestors and synced .htaccess), scoped API keys (read/write/admin) with sliding rate limits, and server-side binary validation for H.264 MP4s and WebP thumbnails.
Test CineSKU on your catalog: SKU volume review, storage savings projection and live Vimeo SDK bridge walkthrough.