> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Block IPs

- Component: `appmixer.cloudflareWAF.waf.CreateCustomRules`
- Kind: Action
- Version: 1.1.2
- Visibility: Public
- Connector: [appmixer.cloudflareWAF 1.3.3](https://connectors.appmixer.com/connector/appmixer.cloudflareWAF/1.3.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.cloudflareWAF/1.3.3/component/appmixer.cloudflareWAF.waf.CreateCustomRules>

Create custom rules in waf

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Zone Id (`zoneId`) | text | Zone Id |

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| IP address (`ips`) | text | List of IP address which will be blocked by adding a blocking custom rule to the waf. The values must be separated by a comma, space or newline. JSON format is also supported, for example: ["1.1.1.1", "2.2.2.2"]. |
| TTL (`ttl`) | number | Time to live in seconds. The IPs will be automatically removed after this duration. Leave blank or set to 0 to block the IPs permanently (no automatic removal). |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.cloudflareWAF.waf.CreateCustomRules",
  "label": "Block IPs",
  "description": "Create custom rules in waf",
  "private": false,
  "version": "1.1.2",
  "auth": {
    "service": "appmixer:cloudflareWAF"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "ips": {
            "type": [
              "string",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "ttl": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "ips"
        ]
      },
      "inspector": {
        "inputs": {
          "ips": {
            "type": "text",
            "label": "IP address",
            "tooltip": "List of IP address which will be blocked by adding a blocking custom rule to the waf. The values must be separated by a comma, space or newline. JSON format is also supported, for example: [\"1.1.1.1\", \"2.2.2.2\"].",
            "index": 1
          },
          "ttl": {
            "type": "number",
            "label": "TTL",
            "index": 2,
            "tooltip": "Time to live in seconds. The IPs will be automatically removed after this duration. Leave blank or set to 0 to block the IPs permanently (no automatic removal)."
          }
        }
      }
    }
  ],
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "zoneId": {
          "type": "string"
        }
      },
      "required": [
        "zoneId"
      ]
    },
    "inspector": {
      "inputs": {
        "zoneId": {
          "type": "text",
          "label": "Zone Id",
          "tooltip": "Zone Id",
          "index": 3
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out"
    }
  ],
  "icon": "(data URI omitted)"
}
```
