Ok... I have created a web application using Visual Studio 2008 using C#..
Now i need to secure this website; for that i need to add a login page.
I am not using the login control of visualstudio.. i am just entering the username and password and there is an API which returns true or false after authentication...
If it returns true the user is allowed to access my application and if false an error page is displayed... Is there a secure way to do this
Currently what is happening is that when i publish my web application and store it in the webroot directory of the server... the webpage can be opened simply by typing "http://ip address/Default.aspx" or "http://ip address/Page1.aspx". So i dont want this to happen instead if this is typed an error page should open. But if the user goes to the login page and logs in then only it should open these pages....
Any suggestions on how to achieve this.. thanks