title: How do I grant anonymous access to a url using FormsAuthentication?
body: <p>For the most part, my webapp requires authentication to do anything.  There are a few pages, namely the homepage, that I'd like people to be able to access without authenticating.  </p>
  
  <p>Specifically, I'd like to allow anonymous access to these urls:</p>
  
  <pre><code>/home 
  /default.aspx
  </code></pre>
  
  <p>I'm using asp.net MVC and FormsAuthentication.  Both urls point to the same view:</p>
  
  <pre><code>/home/index.aspx
  </code></pre>
  
  <p>Here is my current configuration in web.config.</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/LogOn" timeout="2880" /&gt;      
  &lt;/authentication&gt;
  &lt;authorization&gt;           
    &lt;deny users="?" /&gt;      
  &lt;/authorization&gt;
  </code></pre>
  
  <p>Reading the documentation for the authorization tag, it says "Configures the authorization for a Web application, controlling client access to URL resources."  It seems like I should be able to use the authorization tag to specify a url and allow access.</p>
  
  <p>Something like:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/LogOn" timeout="2880" /&gt;      
  &lt;/authentication&gt;
  
  &lt;authorization&gt;           
    &lt;deny users="?" /&gt;      
  &lt;/authorization&gt;
  
  &lt;authorization url="/default.aspx"&gt;           
    &lt;allow users="?" /&gt;      
  &lt;/authorization&gt;
  
  &lt;authorization url="/home"&gt;           
    &lt;allow users="?" /&gt;      
  &lt;/authorization&gt;
  </code></pre>