WafConfig

class oci.waas.models.WafConfig(**kwargs)

Bases: object

The Web Application Firewall configuration for the WAAS policy.

Methods

__init__(**kwargs) Initializes a new WafConfig object with values from keyword arguments.

Attributes

access_rules Gets the access_rules of this WafConfig.
address_rate_limiting Gets the address_rate_limiting of this WafConfig.
caching_rules Gets the caching_rules of this WafConfig.
captchas Gets the captchas of this WafConfig.
custom_protection_rules Gets the custom_protection_rules of this WafConfig.
device_fingerprint_challenge Gets the device_fingerprint_challenge of this WafConfig.
good_bots Gets the good_bots of this WafConfig.
human_interaction_challenge Gets the human_interaction_challenge of this WafConfig.
js_challenge Gets the js_challenge of this WafConfig.
origin Gets the origin of this WafConfig.
origin_groups Gets the origin_groups of this WafConfig.
protection_rules Gets the protection_rules of this WafConfig.
protection_settings Gets the protection_settings of this WafConfig.
threat_feeds Gets the threat_feeds of this WafConfig.
whitelists Gets the whitelists of this WafConfig.
__init__(**kwargs)

Initializes a new WafConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
access_rules

Gets the access_rules of this WafConfig. The access rules applied to the Web Application Firewall. Used for defining custom access policies with the combination of ALLOW, DETECT, and BLOCK rules, based on different criteria.

Returns:The access_rules of this WafConfig.
Return type:list[oci.waas.models.AccessRule]
address_rate_limiting

Gets the address_rate_limiting of this WafConfig. The IP address rate limiting settings used to limit the number of requests from an address.

Returns:The address_rate_limiting of this WafConfig.
Return type:oci.waas.models.AddressRateLimiting
caching_rules

Gets the caching_rules of this WafConfig. A list of caching rules applied to the web application.

Returns:The caching_rules of this WafConfig.
Return type:list[oci.waas.models.CachingRule]
captchas

Gets the captchas of this WafConfig. A list of CAPTCHA challenge settings. These are used to challenge requests with a CAPTCHA to block bots.

Returns:The captchas of this WafConfig.
Return type:list[oci.waas.models.Captcha]
custom_protection_rules

Gets the custom_protection_rules of this WafConfig. A list of the custom protection rule OCIDs and their actions.

Returns:The custom_protection_rules of this WafConfig.
Return type:list[oci.waas.models.CustomProtectionRuleSetting]
device_fingerprint_challenge

Gets the device_fingerprint_challenge of this WafConfig. The device fingerprint challenge settings. Used to detect unique devices based on the device fingerprint information collected in order to block bots.

Returns:The device_fingerprint_challenge of this WafConfig.
Return type:oci.waas.models.DeviceFingerprintChallenge
good_bots

Gets the good_bots of this WafConfig. A list of bots allowed to access the web application.

Returns:The good_bots of this WafConfig.
Return type:list[oci.waas.models.GoodBot]
human_interaction_challenge

Gets the human_interaction_challenge of this WafConfig. The human interaction challenge settings. Used to look for natural human interactions such as mouse movements, time on site, and page scrolling to identify bots.

Returns:The human_interaction_challenge of this WafConfig.
Return type:oci.waas.models.HumanInteractionChallenge
js_challenge

Gets the js_challenge of this WafConfig. The JavaScript challenge settings. Used to challenge requests with a JavaScript challenge and take the action if a browser has no JavaScript support in order to block bots.

Returns:The js_challenge of this WafConfig.
Return type:oci.waas.models.JsChallenge
origin

Gets the origin of this WafConfig. The key in the map of origins referencing the origin used for the Web Application Firewall. The origin must already be included in Origins. Required when creating the WafConfig resource, but not on update.

Returns:The origin of this WafConfig.
Return type:str
origin_groups

Gets the origin_groups of this WafConfig. The map of origin groups and their keys used to associate origins to the wafConfig. Origin groups allow you to apply weights to groups of origins for load balancing purposes. Origins with higher weights will receive larger proportions of client requests. To add additional origins to your WAAS policy, update the origins field of a UpdateWaasPolicy request.

Returns:The origin_groups of this WafConfig.
Return type:list[str]
protection_rules

Gets the protection_rules of this WafConfig. A list of the protection rules and their details.

Returns:The protection_rules of this WafConfig.
Return type:list[oci.waas.models.ProtectionRule]
protection_settings

Gets the protection_settings of this WafConfig. The settings to apply to protection rules.

Returns:The protection_settings of this WafConfig.
Return type:oci.waas.models.ProtectionSettings
threat_feeds

Gets the threat_feeds of this WafConfig. A list of threat intelligence feeds and the actions to apply to known malicious traffic based on internet intelligence.

Returns:The threat_feeds of this WafConfig.
Return type:list[oci.waas.models.ThreatFeed]
whitelists

Gets the whitelists of this WafConfig. A list of IP addresses that bypass the Web Application Firewall.

Returns:The whitelists of this WafConfig.
Return type:list[oci.waas.models.Whitelist]