walled garden syntax

Where can I find all the syntax rules for “walled garden add dst-host” entry?

I need to allow an entire 2nd or 3rd level domain
I read about *.domainname.ext
help command in RouterOs (5.15) terminal reports that “.)mikrotik.com$" matches everything under mikrotik.com” but it’s not accepted.

TIA
Stefano

The asterisk works for me in an earlier OS version. Has something changed?

/ip hotspot walled-garden
add dst-host=*.yourdomain.com action=allow

unfortunately

dst-host=*.yourdomain.com

doesn’t match http://yourdomain.com, but only 3rd level domains, like http://www.yourdomain.com, http://mail.yourdomain.com and so on .

I’d like to find an universal matcher :slight_smile:

TIA

I’d like to find an universal matcher

I’d like to find an “Easy Button”, but they have hidden it well. :smiley:
Is there a reason you cannot enter one more entry? Is your walled-garden list that full?

/ip hotspot walled-garden
add dst-host=*.mydomain.com action=allow
add dst-host=mydomain.com action=allow

Does that work?

thank you for your answer.

obviously I can double my walled garden entries, including 2rd and nTh level domain matchers but I think that an (hypothetical :slight_smile: ) universal matcher works better.

BTW, if there’s not an universal matcher I’ll go for doubling.

Thank you.