Class ValidateCaptchaAttribute
- Namespace
- NuvTools.Security.AspNetCore.Captcha
- Assembly
- NuvTools.Security.AspNetCore.dll
Requires a valid CAPTCHA token (header X-Captcha-Token) to execute the action or controller.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false)]
public sealed class ValidateCaptchaAttribute : TypeFilterAttribute, IFilterFactory, IOrderedFilter, IFilterMetadata
- Inheritance
-
ValidateCaptchaAttribute
- Implements
- Inherited Members
Remarks
Apply it to anonymous or public endpoints that could be targeted by automated access, bulk submission or brute force. Verification is skipped when the CAPTCHA is disabled in configuration.
Constructors
ValidateCaptchaAttribute()
Requires a valid CAPTCHA token (header X-Captcha-Token) to execute the action or controller.
public ValidateCaptchaAttribute()
Remarks
Apply it to anonymous or public endpoints that could be targeted by automated access, bulk submission or brute force. Verification is skipped when the CAPTCHA is disabled in configuration.