I have a virtual directory in IIS, where I am keeping some of my files. I need to allow , only the clients, which requests with a specific username and passsword, to download the file.
ie, If a client request for a file [http get] i should verify the client is authenticated. I must keep the virtual directory in classic mode - No managed code mode. Without using a script, can I achieve this by any of the IIS settings.
Thanks in advance
Edit:
I have got the solution which will work in Integrated mode. ie, adding an HTTP module will do the job.
But I need the same thing to be done in Classic mode. I am adding the Module in the Web.config file. But it is having no effect.
Anybody have an idea on how Global.asax works on classic mode..
Optimus13
Member
1 Points
7 Posts
Authenticate a client in classic mode IIS 7.0
Feb 07, 2013 08:59 AM|LINK
I have a virtual directory in IIS, where I am keeping some of my files. I need to allow , only the clients, which requests with a specific username and passsword, to download the file.
ie, If a client request for a file [http get] i should verify the client is authenticated. I must keep the virtual directory in classic mode - No managed code mode. Without using a script, can I achieve this by any of the IIS settings.
Thanks in advance
Edit:
I have got the solution which will work in Integrated mode. ie, adding an HTTP module will do the job.
But I need the same thing to be done in Classic mode. I am adding the Module in the Web.config file. But it is having no effect.
Anybody have an idea on how Global.asax works on classic mode..
Any comments are welcome.. plz
kaysar98
Member
176 Points
38 Posts
Re: Authenticate a client in classic mode IIS 7.0
Feb 07, 2013 09:46 AM|LINK
try with the following process:
right click the project folder -> properties -> security , then add a user name, 'Network Service'