Skip to content
Start here

Fraud

Get Fraud Detection Settings
fraud.get(FraudGetParams**kwargs) -> FraudSettings
GET/zones/{zone_id}/fraud_detection/settings
Update Fraud Detection Settings
fraud.update(FraudUpdateParams**kwargs) -> FraudSettings
PUT/zones/{zone_id}/fraud_detection/settings
ModelsExpand Collapse
class FraudSettings:
user_profiles: Optional[Literal["enabled", "disabled"]]

Whether Fraud User Profiles is enabled for the zone.

One of the following:
"enabled"
"disabled"
username_expressions: Optional[List[str]]

List of expressions to detect usernames in write HTTP requests.

  • Maximum of 10 expressions.
  • Omit or set to null to leave unchanged on update.
  • Provide an empty array [] to clear all expressions on update.
  • Invalid expressions will result in a 10400 Bad Request with details in the messages array.