TimothyMeadows / reCAPTCHA.AspNetCore

Google reCAPTCHA v2/v3 for .NET Core 3.x
MIT License
144 stars 51 forks source link

Prevent Exception when recaptcha isn't at form #93

Closed brunobritodev closed 3 years ago

brunobritodev commented 3 years ago

Nowadays it's really commom to be a target of DDoS or some web scans.

So when it occurs at pages where there are recaptcha it throws an exception pushing our server to deal with that. It's a memory intensive task to .NET deal with exception.

image

image

So instead to throw an error, is it possible to only refuse the request?