Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can I lock an ASP.NET application to a domain

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> Licensing FAQ
View previous topic :: View next topic  
Author Message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jun 16, 2009 6:07 am    Post subject: Can I lock an ASP.NET application to a domain Reply with quote

Yes - if you use Authenticated Licensing in an ASP.NET application then this is default. When running in an ASP.NET application the AuthenticationLicenseProvider.GetComputerID method returns the domain name of the licensed web page (eg infralution.com). The Authenticated Web App sample project illustrates using Authenticated licensing in a ASP.NET application.

Note that if you use authenticated licensing for an ASP.NET application then your customers must always access the page through the licensed domain. If they don't and (for instance) access the page through a direct IP address or internal network name then the license will not be valid.

A customer can ensure that traffic is always directed to the page via one domain by adding a rewrite rule to the <system.webServer> section of the Web.Config file:

Code:
     <rewrite>
         <rules>
           <rule name="Redirect to domain" stopProcessing="true">
             <match url=".*"/>
             <conditions>
               <add input="{HTTP_HOST}" pattern="^otherdomain.com$"/>
             </conditions>
             <action type="Redirect" url="http://www.domainhere.com/{R:0}"
redirectType="Permanent"/>
          </rule>
        </rules>
      </rewrite>


This rule redirects traffic from one domain to another.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> Licensing FAQ All times are GMT
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


Powered by phpBB © 2001, 2005 phpBB Group