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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ip": "<ip>"
},
"name": "csf_deny_ip"
}
}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 |