<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Easiest way to get .htaccess like access control with IIS 6? </title>
      <link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6/</link>
      <description>Comments on Ask MetaFilter post Easiest way to get .htaccess like access control with IIS 6?</description>
	  	  <pubDate>Thu, 05 Jul 2007 07:02:35 -0800</pubDate>
      <lastBuildDate>Thu, 05 Jul 2007 07:02:35 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Easiest way to get .htaccess like access control with IIS 6? </title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6</link>	
  	<description>.htaccess alternative for IIS 6?  &lt;br /&gt;&lt;br /&gt; What is the easiest way to set up simple access control in IIS 6.0? &lt;br&gt;
&lt;br&gt;
Note: High-grade security is not necessary for this. If passwords are sent as plain text, as with .htaccess over http, that&apos;s fine. &lt;br&gt;
&lt;br&gt;
I&apos;m looking for the simplest solution, preferably something that can password protect a directory and every subdirectory and all their contents (when accessed from the web). No more than one user is needed. &lt;br&gt;
&lt;br&gt;
Setup: Windows Small Business Server 2003, with IIS 6. Php is available, but I&apos;m thinking some server setting would be preferable.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.66260</guid>
  	<pubDate>Thu, 05 Jul 2007 06:49:18 -0800</pubDate>
  	<dc:creator>cheerleaders_to_your_funeral</dc:creator>
	
	<category>iis</category>
	
	<category>htaccess</category>
	
	<category>acces</category>
	
</item>
<item>
  	<title>By: moochoo</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#994925</link>	
  	<description>a quick piece of googling gave me this&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.hostmysite.com/support/dedicated/IIS/passwordprotect/&quot;&gt;password protect IIS6&lt;/a&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-994925</guid>
  	<pubDate>Thu, 05 Jul 2007 07:02:35 -0800</pubDate>
  	<dc:creator>moochoo</dc:creator>
</item>
<item>
  	<title>By: delmoi</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#994942</link>	
  	<description>*cough* &lt;a href=&quot;http://httpd.apache.org/download.cgi&quot;&gt;Apache for win32&lt;/a&gt; :P</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-994942</guid>
  	<pubDate>Thu, 05 Jul 2007 07:29:17 -0800</pubDate>
  	<dc:creator>delmoi</dc:creator>
</item>
<item>
  	<title>By: Nothing</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#994947</link>	
  	<description>This is automatic in IIS, isn&apos;t it? Just right click on the directory in Explorer and change the permissions to disallow the IUSR_XXX account. Then you will get a login screen when you try to view the directory, and will have to enter a username that does have access to the directory. (You can create a enw user in windows for this.)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-994947</guid>
  	<pubDate>Thu, 05 Jul 2007 07:40:53 -0800</pubDate>
  	<dc:creator>Nothing</dc:creator>
</item>
<item>
  	<title>By: pb</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#994950</link>	
  	<description>I&apos;ll second Apache for Win32, it&apos;s worth the effort to make the move. But take a look at &lt;a href=&quot;http://www.isapirewrite.com/&quot;&gt;ISAPI_Rewrite&lt;/a&gt; if you&apos;re sticking with IIS, it works well.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-994950</guid>
  	<pubDate>Thu, 05 Jul 2007 07:42:33 -0800</pubDate>
  	<dc:creator>pb</dc:creator>
</item>
<item>
  	<title>By: pb</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#994953</link>	
  	<description>On reread, I concur with Nothing. You don&apos;t need .htaccess for simple access control. More: &lt;a href=&quot;http://support.microsoft.com/kb/324274&quot;&gt;How To Configure IIS Web Site Authentication in Windows Server 2003&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-994953</guid>
  	<pubDate>Thu, 05 Jul 2007 07:46:41 -0800</pubDate>
  	<dc:creator>pb</dc:creator>
</item>
<item>
  	<title>By: fishfucker</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#994963</link>	
  	<description>Another option is &lt;a href=&quot;http://www.troxo.com/products/iispassword/ &quot;&gt;IISPassword&lt;/a&gt; , a free module that will read htaccess and htpasswd files (for access control only). I&apos;ve used it in the past (it integrates with HELM, which sadly, we also used), and it works fine. I imagine it&apos;s most useful in situations where you need to allow a third party to control access to their directories (on your server) without granting them any rights, so it may be overkill for your situation (if you want to avoid creating a windows user, however, it might be right up your alley).</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-994963</guid>
  	<pubDate>Thu, 05 Jul 2007 08:08:07 -0800</pubDate>
  	<dc:creator>fishfucker</dc:creator>
</item>
<item>
  	<title>By: cheerleaders_to_your_funeral</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#995115</link>	
  	<description>Thanks all. That helps a lot.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;(While Apache would be preferable, it&apos;s not an option for this client.)&lt;/small&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-995115</guid>
  	<pubDate>Thu, 05 Jul 2007 10:35:51 -0800</pubDate>
  	<dc:creator>cheerleaders_to_your_funeral</dc:creator>
</item>
<item>
  	<title>By: hincandenza</title>
  	<link>http://ask.metafilter.com/66260/Easiest-way-to-get-htaccess-like-access-control-with-IIS-6#995727</link>	
  	<description>If it&apos;s just one user, then the &amp;quot;create a low-level windows user, disallow anonymous authentication, and make sure that account has access&amp;quot; is okay.&lt;br&gt;
&lt;br&gt;
If you want more than one user, or don&apos;t have total control over that web server, you might just try rolling your own: if it&apos;s an option, asp.net via the web.config lets you specify a set of non-windows username and password combinations and grant them access to sections of your site, so that you don&apos;t have to create an actual Windows user just for authenticated browsing.  It&apos;s also nice in that it&apos;s portable: if you move to a new webserver, your app will move the security with it, seamlessly.&lt;br&gt;
&lt;br&gt;
This &lt;b&gt;&lt;a href=&quot;http://www.15seconds.com/issue/020220.htm&quot;&gt;link&lt;/a&gt;&lt;/b&gt; has a good example: you pretty much just set up your web.config with authentication settings for that directory, and the list of usernames and passwords, and add a login.aspx page so that people can login (which they&apos;ll automatically get sent to if they try to access a resource in that directory without having logged in first).&lt;br&gt;
&lt;br&gt;
The only changes are a login.aspx page (which you can copy/paste the code on that site pretty much verbatim) and a section added to the webconfig saying &amp;quot;This sub-section of the site (the path) is restricted, and here are the usernames and passwords that if given will let people into this section&amp;quot;.  Make those changes, and you&apos;re done- and your app security again will move with your app.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66260-995727</guid>
  	<pubDate>Thu, 05 Jul 2007 20:58:29 -0800</pubDate>
  	<dc:creator>hincandenza</dc:creator>
</item>

    </channel>
</rss>
