Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Lock web application by domain

Lock web application by domain

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m khansari
    wrote on last edited by
    #1

    Hello I want to lock a web application (asp.net) by domain. If the user try to install the website on another domain that was specific by the owner so the website will not work. Thanks for your consideration

    Mohammad Khansari

    A 1 Reply Last reply
    0
    • M m khansari

      Hello I want to lock a web application (asp.net) by domain. If the user try to install the website on another domain that was specific by the owner so the website will not work. Thanks for your consideration

      Mohammad Khansari

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Pass every request through a common HttpHandler, and check the domain there. :laugh: You can also have this logic inside your installer. :thumbsup:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      M 1 Reply Last reply
      0
      • A Abhishek Sur

        Pass every request through a common HttpHandler, and check the domain there. :laugh: You can also have this logic inside your installer. :thumbsup:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        M Offline
        M Offline
        m khansari
        wrote on last edited by
        #3

        thanks how to protect that http handler (or httpModule)? It's very simple to unlock that! :) Now what to do? :-D

        Mohammad Khansari

        A 1 Reply Last reply
        0
        • M m khansari

          thanks how to protect that http handler (or httpModule)? It's very simple to unlock that! :) Now what to do? :-D

          Mohammad Khansari

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          are you going to give him the code?? If not, place the logic in the BasePage, and inherit everypage from your basepage. :cool:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups