We have a web application. Under the main DNS we have different applications. For Example My Main DNS is http://www.sitepoint.com/ , I have different applications under this like http://www.sitepoint.com/supplier/ and http://www.sitepoint.com/XYZ/main.asp.

The application XYZ is developed in ASP. Now I have to retrict the user if he directly access the application with the page under the folder XYZ as http://www.sitepoint.com/XYZ/main.asp. Actually the main DNS can be login through the other portal with proper credentials. The ASP project i mentioned can be accessed when the user came through proper credentils. I have to retrict him if he tries to access the page directly. Please help me how can i achieve this ASP.

As i worked in ASp very long back, not able to do thid. Please help me.