hiddify.st
EN

TopicProfiles

A complete configuration, packed and ready

Besides a QR code and the subscription link, Hiddify 5.9's profile share panel offers “the full JSON this profile runs with, your settings included”. This article takes the JSON apart, explains how it differs from a subscription link, its legitimate uses and what happens if it leaks.

Checked on

A packed suitcase: the configuration JSON holds servers, rules and settings all together
A packed suitcase: the configuration JSON holds servers, rules and settings all together Familydestinationsguide.com Images, CC BY 2.0

In the profile list on Home, tap the three dots and choose Share. You see three things: a QR code, the subscription link, and an option called Configuration. The first two are familiar; the third is described as “The full JSON this profile runs with, your settings included”. It is the configuration Hiddify actually hands to the sing-box core to run.

The Configuration option in the share panel is easy to overlook. It exports the complete configuration Hiddify actually hands to the core to run. It is very useful, and also the one thing in the whole app you should least send around casually. Below: first how it compares with a subscription link, then its uses and risks.

How it differs from a subscription link

Subscription linkConfiguration JSON
What it isA web address pointing at the provider's server listA complete running configuration
Does it updateYes, Hiddify downloads it again on scheduleNo, it is a snapshot from the moment of export
Includes your settingsNoYes: DNS, routing rules, inbound and more
SizeOne lineCan be large; if the clipboard cannot hold it, save a file

A subscription link is a claim slip you can use any time to collect the latest goods; the configuration JSON is a box with goods, packaging and instructions packed together.

An airport X-ray luggage scanner: open this JSON and everything inside is plain to see
An airport X-ray luggage scanner: open this JSON and everything inside is plain to see Sarang, Public domain

What is inside

The JSON uses sing-box's configuration format and has roughly these parts:

Skeleton of the configuration JSON (details left out)
{
  "log": { ... },
  "dns": { "servers": [ ... ], "rules": [ ... ] },
  "inbounds": [ { "type": "tun", ... }, { "type": "mixed", ... } ],
  "outbounds": [
    { "type": "vless", "tag": "...", "server": "...", "uuid": "..." },
    { "type": "urltest", "tag": "auto", "outbounds": [ ... ] },
    { "type": "direct", "tag": "direct" }
  ],
  "route": { "rules": [ ... ], "rule_set": [ ... ] }
}
PartWhere it comes from in Hiddify
dnsRemote DNS, outbound resolver and fake DNS on the DNS page
inboundsService mode and ports on the inbound page
outboundsEvery server in the subscription, and groups such as Auto
routeBuilt-in rules and your own rules from the routing page

Legitimate uses

  • Checking that settings took effect: after adding a routing rule, look in route to confirm it was written and where it sits.
  • Showing a developer: when reporting a problem, a developer may ask for the configuration's structure. Delete the server details in outbounds first.
  • Using it in another sing-box client: tools built on sing-box can usually read it, handy where Hiddify is not available.
  • Offline backup: when the provider's subscription address will not open for a while, this snapshot still works for some time.
Rows of numbered boxes in an archive: a snapshot backup that works as soon as you take it out
Rows of numbered boxes in an archive: a snapshot backup that works as soon as you take it out Own work, CC BY-SA 3.0

Why it must never be public

Every server in outbounds has its address, port, UUID or password in plain text. Anyone with this JSON can use your servers and traffic without your subscription link, and publishing server addresses can get them blocked quickly. Inbounds may contain your proxy secret, and route your own rules, which reveal your habits.

  1. Export to a file firstKeep it out of chat apps' clipboard history
  2. Open it in a text editorFind outbounds
  3. Delete server, uuid and password from every serverOr keep one server in outbounds with fake values
  4. Check inbounds for passwordsDelete them
  5. Only then send itOnly to whoever needs it
When you must share the configuration

Using it to check whether a rule took effect

When a new routing rule does not work, the configuration JSON is the most direct evidence:

  1. In the profile's Share, export the configuration to a file;
  2. Open it in a text editor and search for the domain you added, for example example.com;
  3. See where it sits in route's rules, and whether a broader rule above it matches first;
  4. Then check that the rule's outbound is the one you chose.

If your domain is not found, the rule was not saved or you have not reconnected; if it is there but far down, move it up in the rule list. Delete the exported file when you are done checking.

Is the QR code the configuration JSON?

No. The QR code holds the subscription link; scanning it with Hiddify on another device adds the same profile.

Why does it sometimes say it couldn't build the configuration?

Usually the profile itself has a problem, such as a failed subscription update or no usable servers. Update the subscription and try again.

Can the exported JSON be imported back into Hiddify?

Yes, import the .json file with File, but it becomes a new profile that does not update automatically.

Why does the exported configuration contain many rules I never set?

Those are built-in rules that come with your region choice, such as bypassing the LAN and blocking ads; they are written into route together with your own rules.