How to: Enable Data Guard Masking

Masking is used when we do not want to block the page entirely but want to mask all sensitive data in the response. In this example, we enable data guard in alarm mode. In the detailed configuration, we enable enforcement of data guard and specify which items are being protected against information leakage.

    "policy": {
        "name": "waf_policy",
        "template": {
            "name": "POLICY_TEMPLATE_RATING_BASED"
        "applicationLanguage": "utf-8",
        "enforcementMode": "blocking",
        "blocking-settings": {
            "violations": [
                    "name": "VIOL_DATA_GUARD",
                    "alarm": true,
                    "block": false
        "data-guard": {
            "enabled": true,
            "maskData": true,
            "creditCardNumbers": true,
            "usSocialSecurityNumbers": true,
            "enforcementMode": "ignore-urls-in-list",
            "enforcementUrls": []