Este documento está disponible actualmente solo en inglés.

Protecting files for the NativeLoad Secure Runtime

A protected file is a sealed, 256-bit encrypted block with no source code in it. The runtime resolves it inside compiled native code at request time, so it runs on any server where the runtime is installed — with no key or configuration on that server.


  1. Open the panel → Protect.
  2. Upload your project and choose the NativeLoad (native loader) output.
  3. Download the protected package and deploy it to any server that has the

runtime installed (see INSTALL).

That's all — there is nothing to enter on the target server. Protected files run wherever the runtime is present.


What gets protected

  • Only PHP source should be protected. Images, JS, CSS, JSON and other assets

pass through untouched.

  • A protected file keeps its original filename, so includes and autoloaders work

unchanged.

  • You can mix protected and plain PHP freely in one project.
  • Protect only code that PHP compiles (via include/require/autoload). Do

not protect files you read as raw text (templates loaded with file_get_contents, data files served directly) or config files you edit in place.


Deploy checklist

  1. Install the runtime on the target server (INSTALL) and confirm

php -m lists it (and restart PHP-FPM/Apache/LiteSpeed).

  1. Deploy the protected files in place of the originals.
  2. Load one protected page to confirm it runs.
  3. Keep your original (unprotected) source backed up.
If a protected file is placed on a server without the runtime, it does not run (it fails safely — it never exposes source). Install the runtime first.