Additional headers

The letakof-* headers for provider links, subscription notices and interface restrictions.

A provider can add letakof-* headers to the subscription response to configure links, notices and feature availability. Header names are case-insensitive. The tables list names only; the text after the colon in an HTTP example is the value.

Interface restrictions

Settings and configuration viewing are allowed by default. Restriction headers deny an action only when their value is disable (also disabled, 0, false, no, off, deny, in any case). No header, or any other value, allows the action. letakof-wl has a separate rule: the mode is enabled only by the value enable.

letakof-edit-settings: disable
letakof-wifi-whitelist: disable
letakof-view-config: disable
letakof-wl: enable
Header Purpose Default Platforms
letakof-edit-settings Connection settings and custom rules open read-only. GEO databases can still be downloaded. Allowed iPhone, Android
letakof-wifi-whitelist Whitelist mode is unavailable on Wi-Fi and Rules is used instead. On mobile data your chosen mode returns. Applies to manual choice and to network scenarios. Allowed Android phones and iPhone (need letakof-wl)
letakof-view-config Hides the Full configuration page. Allowed Windows, macOS, iPhone, Android
letakof-wl The value enable turns on Whitelist mode (called Allowlist on iPhone) and its Allowed domains and Allowed IP addresses lists. The value is case-insensitive and surrounding whitespace is ignored; without enable the mode is hidden. Off Android phones, iPhone

On platforms not listed, the header is ignored; for example, Whitelist mode does not exist on Windows and macOS.

Supported since version 0.7.1 on Windows, macOS and Android. These buttons and notices are not shown on Android TV.

Header Value and purpose When omitted
letakof-support-url URL of the Support button; takes priority over support-url. Uses support-url, if present.
letakof-account-url URL of the Account button; takes priority over profile-web-page-url. Uses profile-web-page-url, if present.
letakof-renew-url Payment URL for the Renew button in settings and the subscription expiry notice. The button is hidden.
letakof-topup-url Traffic top-up URL for the Top up button in the low-traffic notice. The button is hidden.
letakof-expire-days Non-negative integer: how many days before expiry to show the notice. 3 days.
letakof-traffic-left-gb Non-negative number: the remaining traffic threshold for the notice. Both 0.5 and 0,5 are accepted. 1 GB.
letakof-expire-text Expiry warning text; {days} is replaced with the number of days. Plain text or UTF-8 with the base64: prefix. The app’s standard text.
letakof-traffic-text Low-traffic warning text; {left} is replaced with the remaining GB. Plain text or UTF-8 with the base64: prefix. The app’s standard text.

Links open only over http or https. Notices use the expiry date and remaining traffic from subscription-userinfo; they also appear without links, but buttons appear only when a link is supplied. A dismissed notice returns when the expiry date changes or a new traffic period begins.

letakof-expire-days: 5
letakof-traffic-left-gb: 0.5
letakof-expire-text: Subscription ends in {days} days
letakof-traffic-text: {left} GB remaining

Good to know

  • The policy comes from the subscription that is currently selected. If a header disappears from a later update, the restriction is lifted.
  • These are interface restrictions, not protection. A profile from a file or from another link without the headers is accepted without them. Values already entered stay and keep working.
  • The app shows Changes are disabled by the provider on a restricted page.

Found a mistake? Open an issue on GitHub.