Archive
Posts Tagged ‘BotDetect’
BotDetect Captcha – 404 error – images are not loading
November 29, 2019
Leave a comment
Recently we leveraged BotDetect libraries in our Aspx MVC application to generate CAPTCHA.
After configured all the steps, CAPTCHA images were not showing up on web page.
Using browsers F12 option, we could notice there were 404 (i.e., Not Found) error codes.
Fix:
- Issue in our case was all the BotDetect requests getting routed, which should not be.
- Add below statement in your project’s ‘RouteConfig.cs’ file, which prevents BotDetect requests routing.
// BotDetect requests must not be routed
routes.IgnoreRoute(“{*botdetect}”, new { botdetect = @”(.*)BotDetectCaptcha\.ashx” });
- Rebuild the project and run and you should get the CAPTCHA code.
Refer article for the steps to configure CAPTCHA in MVC application.
🙂