Skip to content

How to use wildcard subdomains on HiddifyManager

Wildcard domain registration on Cloudflare

First, create a * record on your registered domain on Cloudflare. That is, go to the DNS section and click Add record. Then enter a star in the opened page. Fill the field type as A and the value of the IP field with the IP of your server. Make sure the proxy tick is on. That is, if, for example, your domain is yourdomain.com, finally register a field *.yourdomain.com. More information on how to register a domain

image

For IP version 6, you can do the same thing with a record of AAAA type.

image

Registration of wildcard domain on Hiddify panel

To do this, go to the domain settings and create a new domain. Create a CDN or AutoCDN domain.

  • Therefore, enter *.yourdomain.com in the domain name field of the subdomain you registered in the previous step.

  • Give the alias a name of your choice.

  • Select the mode from CDN or AutoCDN. The difference between CDN domain and AutoCDN is in the way the address field is applied in the configuration, CDN returns the domain name and AutoCDN returns the IP. More information on this

Screenshot_20230503_164s956

  • Finally, save the settings to register the domain. If the message to apply changes is given, be sure to click the apply changes button so that the settings are fully applied to the server.

Viewing configs of wildcard domain

First, go to the subscription domain and tick the wildcard domain in the domain configuration field. Suppose that the domain of the subscription links is t1.hiddify.com, edit it and tick the wildcard domain as shown below. With this, the configs of wildcard domain are connected to the subscription link.

Using configs of wildcard domain

Now, if you have different users on the server, you will see that the configurations created on the wildcard domain for each user, are created on a random subdomain and a separate subdomain is created for each user on Cloudflare.

This helps to prevent the subdomain from being blocked.


Last update: April 17, 2024

Comments