Documentation

Everything you need to publish a static website on ProtonPages.

Getting started

  1. Create an account with a nick, your email and your Polygon wallet address.
  2. Confirm your email with the 6-digit code (or the link) we send you.
  3. Your site is live at https://nick.protonpages.com/ with a placeholder index.html. Replace it with your own files.

Uploading with SFTP

Use any SFTP client with these settings:

  • Protocol: SFTP (SSH File Transfer Protocol), not FTP
  • Host: protonpages.com
  • Port: 2222
  • User: your nick
  • Password: your account password

Your login opens directly in your site's root folder. Everything you upload there is public.

Command line

sftp -P 2222 nick@protonpages.com
sftp> put -r ./dist/*
sftp> ls
sftp> df -h      # shows your storage quota

FileZilla

Open File → Site Manager → New site, choose protocol SFTP, enter the host and port above, logon type Normal, then your nick and password.

WinSCP / Cyberduck

Choose SFTP as the file protocol and use the same host, port, user and password.

Automated deploys

With lftp you can mirror a build folder in one command, e.g. in CI:

lftp -u "nick,$PASSWORD" -p 2222 sftp://protonpages.com \
  -e "mirror -R --delete ./dist/ /; bye"

Uploading in the browser

In the dashboard you can drop files and whole folders, upload a ZIP archive that is extracted on the server (optionally replacing the current files), create folders, rename and delete files, and edit text files (HTML, CSS, JS, JSON, Markdown…) directly.

Custom domains

You can serve your site on your own domain for free (up to 5 domains per account), with an automatic HTTPS certificate.

  1. In the dashboard, add the domain, e.g. example.com or www.example.com.
  2. Prove ownership with the TXT record shown there (name _protonpages.example.com). Keep it in place afterwards.
  3. Point the domain to your site: a subdomain such as www with a CNAME to nick.protonpages.com, a root domain with an A record to the server IP shown in the dashboard (or ALIAS/ANAME).
  4. Click Verify now. Optionally make the domain primary: your subdomain and other domains will then redirect to it.

Add the root domain and www separately if you want both to work. If the TXT record disappears (e.g. the domain expires), the domain is detached automatically.

How files are served

  • / and any folder serve index.html.
  • Clean URLs: /about serves about.html if there is no about file or folder.
  • A file named 404.html in the root is used as your custom “not found” page.
  • Correct MIME types for HTML, CSS, JS modules, JSON, SVG, WebAssembly, fonts, images, video and 3D models.
  • Range requests (video seeking, resumable downloads) and Last-Modified revalidation are supported.

CORS and cross-origin access

Every response includes:

Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Headers: *
Cross-Origin-Resource-Policy: cross-origin

Preflight OPTIONS requests are answered automatically. You can load your fonts, JSON, WebAssembly modules and images from any website or app.

Storage and upgrades

Every account starts with 1 MB. To add storage, send USDC on the Polygon network from the wallet address saved in your account to:

0x67318276505AF3B6447906e7Aad4eF6567974D04

Each 1 USDC adds 1 MB of storage for the lifetime of your account. Payments are matched by the sending address and credited by an administrator, usually within 24 hours. Your storage history is shown in the dashboard.

If your quota is full, new uploads are rejected but your site keeps working.

What is not supported

ProtonPages hosts static files only: no PHP, Node.js, databases or server-side code.