Ninja Slider / Posts /

License question for the website that has multiple domain names


My website has multiple domains pointing to it, and I have acquired the slider licenses for each domain. How do I apply the multiple licenses to the same ninja-slider.js file?

Charles  2 years ago   viewed: 15618    

4 Answers


You can add a piece of code just after the var nsOptions = {...} block to handle the different domains.

Suppose you have three domains pointing to the same website: license1 for, license2 for, and license3 for Below is the sample code how to apply the three licenses:

var nsOptions = { ...... license: "license1" }; if(document.domain.indexOf("")!=-1) nsOptions.license = "license2"; else if (document.domain.indexOf("")!=-1) nsOptions.license = "license3"; var nslider = new NinjaSlider(nsOptions); /* Ninja Slider ... (the follows are remain unchanged)

Notice the domain names should not include any http:// or www. as the license won't check them. Also, all domain names MUST be in lower case.

Milo   2 years ago
However, if your other domains will be redirect to, you don't need multiple licenses. You just need one license for the
Milo   2 years ago

I have purchased license for But I have many doamins pointing to the app for example-,, so on... and obviously it will not work for different domain. But the point is, it is same application hosted on single domain for which i have purchased license except it may use differnet domain names sometime. Do I have to buy license for all of the domains? :(

nijaSlider User   6 months ago

If all domains will be redirected to, you only need to purchase a license for Otherwise, you have to purchase multiple licenses for,, and so on.

Milo   6 months ago


Your name*
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: