To make the encoding string easier, Maian Cube offers a number of preset options to understand how this works. You can of course enter your own prefixes. These examples assume the domain would be entered
as 'domain.com' by a visitor. Of course you may instruction the visitor to enter something else, in which case you need to adjust the below accordingly. The examples below may also contain Wildcard
operators (*,?,[]) as detailed in section 3.6.3 of the ionCube documentation.
PRESET VARIABLES
{DOMAIN} = Converts to domain name entered by visitor to create license if applicable.
{IP} = Converts to IP address entered by visitor to create license if applicable.
{MAC} = Converts to MAC address entered by visitor to create license if applicable.
@ CHARACTER
An @ after a list of domain names indicates that all items before should be treated as domain names, even if they look like IP addresses. Although rare, some domain names can look like the start of an IP address, and if writing a script to automatically process domain names, it is recommended always to add an @ to the end of the server names to avoid any misinterpretation.
Restrict to www.domain.com ONLY
www.{DOMAIN}@
Restrict to www.domain.com & domain.com ONLY
www.{DOMAIN},{DOMAIN}@
Restrict to www.domain.com & sub domains
*.{DOMAIN},www.{DOMAIN},{DOMAIN}@
Restrict to IP address only (including range and subnets)
{IP}
Restrict to MAC address (Available ONLY in ionCube Cerberus edition)
{{MAC}} (Note the double braces)
Restrict to Domain Name & IP Address
www.{DOMAIN}@{IP}
Restrict to Domain Name, IP Address & MAC address
www.{DOMAIN}@{IP}{{MAC}} (Note the double braces)
IonCube Command Line Reference:
--allowed-server
--expose-server-restrictions