public RepeatedField<string> AllowedDomains { get; }
Optional. Domains or subdomains of websites allowed to use the key. All
subdomains of an allowed domain are automatically allowed. A valid domain
requires a host and must not include any path, port, query or fragment.
Examples: 'example.com' or 'subdomain.example.com'
public WebKeySettings.Types.ChallengeSecurityPreference ChallengeSecurityPreference { get; set; }
Optional. Settings for the frequency and difficulty at which this key
triggers captcha challenges. This should only be specified for
IntegrationTypes CHECKBOX and INVISIBLE and SCORE_AND_CHALLENGE.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eWebKeySettings\u003c/code\u003e class within the Google Cloud reCAPTCHA Enterprise v1 API for .NET, including its properties and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWebKeySettings\u003c/code\u003e class, used for website-specific keys, implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey features of \u003ccode\u003eWebKeySettings\u003c/code\u003e include options to allow all domains, allow AMP traffic, specify allowed domains, configure challenge security preferences, and define the integration type with the website.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage includes a list of multiple versions of the \u003ccode\u003eWebKeySettings\u003c/code\u003e class, with version \u003ccode\u003e2.17.0\u003c/code\u003e being the most current one available.\u003c/p\u003e\n"],["\u003cp\u003eThe available constructors for \u003ccode\u003eWebKeySettings\u003c/code\u003e include a default parameterless constructor as well as one that takes another instance of \u003ccode\u003eWebKeySettings\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud reCAPTCHA Enterprise v1 API - Class WebKeySettings (2.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.17.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.16.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.15.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.14.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.13.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.12.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.11.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.10.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.9.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.8.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.7.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.6.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.5.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.4.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.3.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.2.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.1.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.0.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.6.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.5.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.4.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.3.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.2.0/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings) \n\n public sealed class WebKeySettings : IMessage\u003cWebKeySettings\u003e, IEquatable\u003cWebKeySettings\u003e, IDeepCloneable\u003cWebKeySettings\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class WebKeySettings.\n\nSettings specific to keys that can be used by websites. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e WebKeySettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[WebKeySettings](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WebKeySettings](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[WebKeySettings](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.RecaptchaEnterprise.V1](/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.RecaptchaEnterprise.V1.dll\n\nConstructors\n------------\n\n### WebKeySettings()\n\n public WebKeySettings()\n\n### WebKeySettings(WebKeySettings)\n\n public WebKeySettings(WebKeySettings other)\n\nProperties\n----------\n\n### AllowAllDomains\n\n public bool AllowAllDomains { get; set; }\n\nOptional. If set to true, it means allowed_domains are not enforced.\n\n### AllowAmpTraffic\n\n public bool AllowAmpTraffic { get; set; }\n\nOptional. If set to true, the key can be used on AMP (Accelerated Mobile\nPages) websites. This is supported only for the SCORE integration type.\n\n### AllowedDomains\n\n public RepeatedField\u003cstring\u003e AllowedDomains { get; }\n\nOptional. Domains or subdomains of websites allowed to use the key. All\nsubdomains of an allowed domain are automatically allowed. A valid domain\nrequires a host and must not include any path, port, query or fragment.\nExamples: 'example.com' or 'subdomain.example.com'\n\n### ChallengeSecurityPreference\n\n public WebKeySettings.Types.ChallengeSecurityPreference ChallengeSecurityPreference { get; set; }\n\nOptional. Settings for the frequency and difficulty at which this key\ntriggers captcha challenges. This should only be specified for\nIntegrationTypes CHECKBOX and INVISIBLE and SCORE_AND_CHALLENGE.\n\n### IntegrationType\n\n public WebKeySettings.Types.IntegrationType IntegrationType { get; set; }\n\nRequired. Describes how this key is integrated with the website."]]