POST https://api.luaprotect.dev/v1/bans/ip

Issue an IP address ban to block execution attempts from an abusive IP subnet.

Body Parameters

Example Request

curl -X POST "https://api.luaprotect.dev/v1/bans/ip" \
  -H "Authorization: Bearer LUAP-YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"ip": "198.51.100.42", "reason": "Rate limit flooding"}'

Example Response

{
  "success": true,
  "message": "IP 198.51.100.42 banned successfully"
}