.htaccess or .htpasswd equivalent on IIS?

Iis.Htaccess

Iis Problem Overview


Does anyone know if there is an equivalent to .htaccess and .htpassword for IIS ? I am being asked to migrate an app to IIS that uses .htaccess to control access to sets of files in various URLs based on the contents of .htaccess files.

I did a google search and didn't turn up anything conclusive. Is there a general approach or tool that I need to purchase that provides this capability ?

Iis Solutions


Solution 1 - Iis

Solution 2 - Iis

There isn't a direct 1:1 equivalent.

You can password protect a folder or file using file system permissions. If you are using ASP.Net you can also use some of its built in functions to protect various urls.

If you are trying to port .htaccess files used for url rewriting, check out ISAPI Rewrite: http://www.isapirewrite.com/

Solution 3 - Iis

I've never used it but Trilead, a free ISAPI filter which enables .htaccess based control, looks like what you want.

Solution 4 - Iis

This is the documentation that you want: http://msdn.microsoft.com/en-us/library/aa292114(VS.71).aspx

I guess the answer is, yes, there is an equivalent that will accomplish the same thing, integrated with Windows security.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMikeJView Question on Stackoverflow
Solution 1 - IisMatijsView Answer on Stackoverflow
Solution 2 - IisTristan HavelickView Answer on Stackoverflow
Solution 3 - IisWedgeView Answer on Stackoverflow
Solution 4 - IisCorey TragerView Answer on Stackoverflow