Updated on 2026-10-10 GMT+08:00

Enabling Alarm Notifications

You can configure alarm rules for WAF to notify you of exceptions by email, SMS messages, or other methods you specify so that you can handle exceptions in a timely manner and keep your website stable.

WAF supports the following notification types:
  • Events: If the number of attacks on your website reaches or exceeds the threshold within a specified period, WAF will send an alarm notification to you. The alarm notification contains logs of attacks that are blocked or logged only.
  • Certificate expired: If the certificate in the selected enterprise project is about to expire, WAF will send an alarm notification to you.
  • Protection rule expired: If a protection rule is about to expire, WAF will send an alarm notification to you.

    Currently, alarm notifications can be configured only for CC attack protection rules, precise protection rules, blacklist rules, and whitelist rules.

  • Cloud-CNAME domain name access alarms: With cloud mode CNAME access, if there is any change to WAF back-to-source IP addresses or to the IP addresses for the website to access WAF, WAF will send an alarm notification to you.

Differences Between Alarm Notifications and Cloud Eye Alarm Rules

Alarm notifications are attack event notifications built in WAF. Cloud Eye alarm rules are threshold alarms based on monitoring metrics. They are complementary to each other.

Video Tutorial

Constraints

  • Only Cloud mode CNAME access mode (professional and enterprise editions) and dedicated mode support certificate expiration alarm notifications.
  • Only Cloud CNAME access supports cloud-CNAME domain name access alarm notifications.
  • Alarm notifications depend on Simple Message Notification (SMN). You are billed based on your actual usage. For details, see SMN Pricing Details.
  • Only one alarm notification of the same type can be configured in an enterprise project.

Prerequisites

  • You have connected your website to WAF using cloud CNAME or dedicated mode access.
  • You have created a topic on the SMN console and the subscription status is confirmed. For details, see Creating a Topic.
  • If you want to configure event notifications, ensure that you have configured protection rules. For details, see Protection Configuration.
  • If you want to configure protection rule expiration notifications, ensure that you have configured the validity periods for the protection rules. For details, see Protection Configuration.
  • If you want to configure cloud-CNAME based domain name access notifications, ensure that you have connected your website to WAF using cloud CNAME or dedicated mode access.

Enabling Alarm Notifications

  1. Log in to the WAF console.
  2. Click in the upper left corner and select a region or project.
  3. (Optional) If you have enabled the enterprise project function, in the upper part of the navigation pane on the left, select your enterprise project from the Filter by enterprise project drop-down list. Then, WAF will display the related security data in the enterprise project on the page.
  4. In the navigation pane on the left, choose Security Operations > Notifications.
  5. Click Create, configure notification parameters, and click OK.

    Figure 1 Create Notification
    Table 1 Description of notification setting parameters

    Parameter

    Description

    Notification Type

    Type of the notification.

    • Events: If the number of attacks on your website reaches or exceeds the threshold within a specified period, WAF will send an alarm notification to you. The alarm notification contains logs of attacks that are blocked or logged only.
    • Certificate expired: If the certificate in the selected enterprise project is about to expire, WAF will send an alarm notification to you.
    • Protection rule expired: If a protection rule is about to expire, WAF will send an alarm notification to you.

      Currently, alarm notifications can be configured only for CC attack protection rules, precise protection rules, blacklist rules, and whitelist rules.

    • Cloud-CNAME domain name access alarms: With cloud mode CNAME access, if there is any change to WAF back-to-source IP addresses or to the IP addresses for the website to access WAF, WAF will send an alarm notification to you.

    Notification Name

    Name of the alarm notification.

    Enterprise Project

    Enterprise project for which the notification takes effect.

    Notification Topic

    The topic for configuring the terminals for receiving alarm notifications. Select an existing topic from the drop-down list or click View Topic and create a topic on the displayed page.

    CAUTION:

    Sending notifications using SMN topics may incur fees. For details about the billing, see Billing.

    If there are no topics, click View Topic and perform the following steps to create a topic:
    1. Create a topic. For details, see Creating a Topic.
    2. Add one or more subscriptions to the topic. You will need to provide a phone number, email address, function, platform application endpoint, DMS endpoint, or HTTP/HTTPS endpoint for receiving alarm notifications. For details, see Adding a Subscription.
    3. Confirm the subscription. After the subscription is added, confirm the subscription.

    For more details about topics and subscriptions, see Simple Message Notification User Guide.

    Interval (Events)

    Alarm threshold. An alarm is sent when the number of attacks reaches the threshold within the specified interval.

    If you select Events for Notification Type, this parameter is mandatory.

    Event Type (Events)

    Event types. By default, all event types are selected. You can customize the event types.

    If you select Events for Notification Type, this parameter is mandatory.

    Protection Rules (Protection rule expired)

    Protection rule type. By default, all protection rule types are selected. You can customize the protection rule types. The options are CC Attack Protection, Precise Protection, and Blacklist and Whitelist.

    If you select Protection rule expired for Notification Type, this parameter is mandatory.

    Notification Before Expiration (Certificate expiration/Protection rule expired)

    Notification time. Select how long before a certificate expires WAF can send notifications. You can select 1 week, 1 month, or 2 months. For example, if you select 1 week, WAF will send you notifications through SMN (by SMS message or email) from one week before the certificate or protection rule expires until its expiration date, based on the Interval you configure.

    This parameter must be configured if you select Certificate expiration or Protection rule expired for Notification Type.

    Interval (Certificate expiration/Protection rule expired)

    How often WAF sends expiration notifications to you. You can select Weekly or Daily.

    This parameter must be configured if you select Certificate expiration or Protection rule expired for Notification Type.

    Alarm Content (Cloud-CNAME domain name access alarm)

    Alarm content type. By default, all types are selected. You can select Back-to-Source IP address change or Access IP address change.

    This parameter is mandatory if you select Cloud-CNAME domain name access alarm for Notification Type.

    Description

    (Optional) A description of the purposes of the alarm.

  6. Click OK.

    • To disable a notification, locate the row containing the notification and click Disable in the Operation column.
    • To delete a notification, locate the row containing the notification and click Delete in the Operation column.
    • To modify a notification, locate the row containing the notification and click Modify in the Operation column.

Example Alarm Notification Email

If you have enabled alarm notifications and configured email alarm notifications, WAF emails you reports of any attacks that occur. Figure 2 shows an alarm notification email.

Figure 2 Alarm notification email

Related Operations

Configuring Alarm Monitoring Rules: In the upper part of the Notifications page, click the Cloud Eye link to go to the Cloud Eye console. You can set WAF alarm rules to customize the monitored objects and notification policies, and set parameters such as the alarm rule name, monitored object, metric, threshold, monitoring scope, and whether to send notifications. This helps you learn the WAF protection status in a timely manner.