Using MyCaptcha with ASP.NET Authorization

Coordinator
Apr 11, 2009 at 5:43 AM
Edited Apr 11, 2009 at 5:44 AM
Very important to know that if you use MyCaptcha with ASP.NET Authentication (i.e. Forms Authentication), you must provide anonymous access to GetImgText.ashx file. Otherwise, when an anonymous user is visiting your web site, the captcha image will not be visible. Add the following 'location' section to your web.config file.

  <location path="GetImgText.ashx">
  <system.web>
    <authorization>
      <allow users="*"/>
    </authorization>
  </system.web>
</location>