ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

make_license is finicky and errors with certain domain names

Author Message
AlphaKilo



Joined: 08 Mar 2014
Posts: 14

PostPosted: Tue Dec 13, 2016 8:45 pm    Post subject: make_license is finicky and errors with certain domain names Reply with quote

I have a PHP script that executes make_license so users of my plugin can create their own domain-based license files. The problem is that some domains work fine and others cause the make_license to error.

For example it can generate a license for 4.com and 45.com, but 456.com causes an error.

I'm completely stumped. 5-5test.com works. 1987-95test.com causes an error.

These all work:
1-thebest.com
123.com
5-5test.com
5test-domain.com
6-test.com
9-waste-9.com
test-domain.com

These don't:
19-95.com
1987-95test.com
456.net

Can anyone see a pattern or anything to help me out? Been working on this for several days now. Sad
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 187

PostPosted: Wed Dec 14, 2016 10:49 am    Post subject: Reply with quote

Hi,

It is best if you create a ticket about this in our Support Help Desk at http://support.ioncube.com Please include the full make_license command that you are running in your script and the actual error message that you are seeing.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2756

PostPosted: Wed Dec 14, 2016 6:26 pm    Post subject: Reply with quote

The solution it is to put an @ at the end of a server name.

From the User Guide PDF:

Restricting by Domain Name
Specify domain names separated by commas and optionally ending the list with an @ character.
Examples:

Restrict files to www.foo.com
--allowed-server www.foo.com

Restrict files to www.foo.com and www.bar.com
--allowed-server www.foo.com,www.bar.com

Restrict files to name 1.2.3.4
--allowed-server 1.2.3.4@
Note the trailing @ after the name in this example. 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.
_________________
Community Admin
Back to top
View user's profile Send private message
AlphaKilo



Joined: 08 Mar 2014
Posts: 14

PostPosted: Wed Dec 14, 2016 8:13 pm    Post subject: Reply with quote

liaison wrote:
The solution it is to put an @ at the end of a server name.


THAT WORKED! THANK YOU!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum