csf_deny_ip
Block an IP address in CSF firewall on DirectAdmin. Add a permanent or temporary deny rule with optional comment and TTL, protecting your server from unwanted traffic.
Instructions
Block an IP in CSF (csf -d / temporary deny).
Args: ip: IPv4, IPv6, or CIDR. comment: Note stored with the rule. temporary: Use a TTL instead of a permanent deny. ttl_seconds: Lifetime when temporary=true. confirm: Required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| comment | No | denied-via-directadmin-mcp | |
| confirm | No | ||
| temporary | No | ||
| ttl_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |