Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i have a website with c# deployed on a windows server 2008 and IIS7

now it is accessible to everyone, but i need to passsword protect it (like with .htaccess) for now i only managed to deny any access to it ! via disabling anonymous authentification from ii7

please bear with me,total newbie here thanks

share|improve this question

migrated from stackoverflow.com Jun 28 '11 at 19:21

This question came from our site for professional and enthusiast programmers.

Did you google around at all? It doesn't look like you did. –  Kon Jun 28 '11 at 15:59
for ur information..i did! –  astrocybernaute Jun 28 '11 at 16:00
Voted down for snarky response to questions. –  uSlackr Jun 28 '11 at 19:30

2 Answers 2

windows authentification is what i need, so i added it and enabled it,then i get a prompt asking for credentials..the windows session credentials its fine for me now thanks

share|improve this answer
Make sure you do this over ssl or passwords will come cleartext over the net –  uSlackr Jun 28 '11 at 19:28

The easiest way for you to do this is to put a login form on your site. There are a lot of different variables to take into consideration, but here's a good starting place for figuring out the basics...


share|improve this answer
this is not the way i want to do it! –  astrocybernaute Jun 28 '11 at 16:00
Then how DO you want to do it? –  J. Steen Jun 28 '11 at 16:03
its only temporary while the website is in devloppement phase. i'd like something that works like .htaccess –  astrocybernaute Jun 28 '11 at 16:04
Tried searching? stackoverflow.com/search?q=iis+htaccess –  J. Steen Jun 28 '11 at 16:06
not all 4444 of them of course –  astrocybernaute Jun 28 '11 at 16:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.