<system.web>
<!-- anonymous usage -->
<authentication mode="None"></authentication>
<!-- Forms login -->
<!--<authentication mode="None">
<forms ... />
</authentication>-->
</system.web>
Is that what you're looking for? note this won't "disable" the AccountController, but will make it trivial since authentication would effectively be disabled. However, it's up to how to write the site in terms of showing a login/logout button or showing no credential handling on the page when permitted.
You could probably create an extension of the AuthorizeAttrbiute
that checks Context.User.Identity.AuthenticationType
and permits/denies access based on authentication mod supplied in web.config
(then apply that attribute to the AccountController
(and any other actions) you want to restrict when mode="None"
.