Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit b2621fc

Browse files
authored
Edit discord message
1 parent 3f1a89e commit b2621fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

root/defaults/fail2ban/action.d/discord-webhook.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ actioncheck =
2020
# Notify on Banned
2121
actionban = curl -X POST "<webhook>" \
2222
-H "Content-Type: application/json" \
23-
-d '{"username":"<botname>", "content":":bell: Hey <discord_userid>! **[<name>]** :hammer:**BANNED**:hammer: IP: `<ip>` for <bantime> seconds after **<failures>** failure(s). Here is some info about the IP: <url_check_ip><ip>"}'
23+
-d '{"username":"<botname>", "content":":bell: Hey <discord_userid>! **[<name>]** :hammer:**BANNED**:hammer: IP: [<ip>](<url_check_ip><ip>) for **<bantime>** seconds after **<failures>** failure(s)."}'
2424
curl -X POST "<webhook>" \
2525
-H "Content-Type: application/json" \
2626
-d '{"username":"<botname>", "content":"If you want to unban the IP run: `fail2ban-client unban <ip>`"}'

0 commit comments

Comments
 (0)