Slack, Discord and Webhook Alerts
On the Business and Agency plans, GuardPress can post its security alerts to a Slack channel, a Discord channel or any HTTPS webhook, alongside or instead of email. This article covers setting up each channel, the test button, which alerts are sent, and how throttling applies.
Slack, Discord and webhook alerts need GuardPress Business or Agency and GuardPress 1.6.59 or later. On Pro the fields are shown but disabled, with an upgrade link.
Where the settings are
Open GuardPress → Settings and scroll to Notifications. Below the email settings there are three rows, Slack Alerts, Discord Alerts and Webhook Alerts, and one more setting, Channel Alerts Include. You can use one channel, two or all three. Every channel gets the same alerts.
Slack
Create an incoming webhook in Slack
In Slack, set up an incoming webhook for the channel the alerts should go to (the Incoming Webhooks feature of a Slack app). Copy the webhook URL. It starts with https://hooks.slack.com/services/.
Paste it into Slack Alerts
Paste the URL into Slack Alerts and click Save Changes. GuardPress only accepts a Slack incoming webhook address here. Anything else is not saved, and a notice at the top of the page tells you.
Send a test
Once saved, the field reads “Saved. Paste a new URL to replace it.” and a Send test button appears next to it. Click it. A “Test message” post should show up in the channel within a few seconds, and the button reports “Test message sent.”
Discord
Create a channel webhook in Discord
In Discord, open the channel’s settings, go to Integrations → Webhooks, create a webhook and copy its URL. It starts with https://discord.com/api/webhooks/.
Paste it into Discord Alerts
Paste the URL into Discord Alerts, save, and click Send test. Discord posts from GuardPress never ping anyone: mentions in alert text are switched off.
Webhook (any HTTPS address)
Use the webhook to send alerts to your own system: a ticketing tool, an automation platform, or a small script on another server.
Enter the address
Paste an https:// address into Webhook Alerts and save. The address must point to a public host. Addresses on a private network and the site’s own address are refused.
Copy the signing secret
After saving, a Signing secret appears under the field. Copy it to your receiver. Saving a new webhook address creates a new secret, so update your receiver whenever you change the address.
Send a test
Click Send test. If your receiver answers with anything other than a 2xx status, the button shows the status it got back. Redirects are not followed, so the address must answer directly.
What the webhook sends
Each alert is a JSON POST like this:
{
"event": "guardpress.alert",
"site": { "name": "Example Site", "url": "https://example.com/" },
"alert": {
"type": "brute_force",
"severity": "high",
"title": "Brute Force Attack Blocked",
"message": "...",
"description": "...",
"ip_address": "203.0.113.7"
},
"sent_at": "2026-11-25T08:00:00+00:00"
}Checking the signature
Every request carries two headers:
X-GuardPress-Timestamp: the time the request was sent, in Unix seconds.X-GuardPress-Signature:sha256=followed by the hex HMAC-SHA256 of the timestamp, a dot, and the raw request body, keyed with your signing secret.
Rebuild the signature on your side and compare. Reject requests whose signature doesn’t match, and requests with an old timestamp (a few minutes is a sensible limit). A PHP receiver can check it like this:
$body = file_get_contents( 'php://input' );
$time = $_SERVER['HTTP_X_GUARDPRESS_TIMESTAMP'] ?? '';
$expected = 'sha256=' . hash_hmac( 'sha256', $time . '.' . $body, $secret );
$valid = hash_equals( $expected, $_SERVER['HTTP_X_GUARDPRESS_SIGNATURE'] ?? '' )
&& abs( time() - (int) $time ) < 300;Which alerts go to the channels
- The same alerts as email. Channels get every alert that would be emailed: firewall blocks, brute-force attacks, blocked addresses, malware, file changes, vulnerability findings, site-down alerts and the rest.
- Throttling and the filter apply. Alerts pass through Alert Throttling and the Alert email filter first, so a burst from one address arrives as one post plus a summary, exactly as it does by email.
- Email can be off. Channels work whether or not Enable email alerts is on. Turn email off if you only want alerts in Slack or Discord.
- Minimum severity. Channel Alerts Include sets the lowest severity that goes to the channels: Every alert, Medium and above, High and critical, or Critical only. It does not change what is emailed.
- No repeats. The same alert is posted once in a six-hour window.
- Email only. Alerts that contain a sign-in recovery link, test emails and alert previews are never posted to a channel.
Each Slack or Discord post shows the site name, the severity, the alert title and details, the address involved, and a link to the GuardPress dashboard.
Operational notes
Alerts are sent in the background
Alerts are queued and posted by a WP-Cron run a moment later, so a slow channel never slows down your site. On a site with little traffic and no server cron, a post can arrive a few minutes after the event. Up to 20 alerts are posted per run; the rest follow a minute later.
During a large attack
Up to 50 alerts wait in the queue. If more arrive before they are sent, the extra ones are counted and the channels get one post saying how many more alerts were not posted. Everything is still recorded on the dashboard and in the audit log.
Removing a channel
Tick Remove next to the channel and save. Removing the webhook also deletes its signing secret.
If the plan changes
If the site’s licence moves to Pro, posting stops and any queued alerts are dropped. The saved addresses are kept and start working again after an upgrade to Business or Agency.
- Quieting the Alert Email Flood: throttling and the alert email filter, which channels share with email
- GuardPress Plans and Features: what each plan includes