How to Set-up Bandwidth Alert Notifications

Follow

Purpose

To notify the store owner when their site is being hit by a bot in rapid succession. The notification will only be sent once and when the customer goes to the visitors session list in the admin the flag for the email will be reset so they can receive another notification in the event of future bots attacking the site.

 

Getting Set-Up

Create a Custom Field

  • Navigate to: Tools > Power Features > Custom Field Set-Up > New
  • Set the Name as: BandwidthNotificationFlag
  • Set the label as: Bandwidth Notification Flag
  • Set the Field Type to: Stores
  • Set the Input Type to: Single Line Textbox (Default)
  • Set the Value Type to: String
  • Click Save

Note: Your custom field should look like the following image.

 

Create an Ad Code

  • Navigate to: Marketing > Power Features > Ad Codes > New
  • Set the Code as: botnotified
  • Set the Expiration Date as: A date far in the future
  • Click Save

Note: Your Ad Code should look like the following.

 

Create an Email Template

  • Navigate to: Marketing > Email Templates > New
  • Set the Email Template Name as: Bandwidth Alert
  • Set the Email Subject as Bandwidth Alert
  • Add the body of the email. Note: It is suggest that you add a link to the visitors sessions list on your site.

 

Alert Creation

Visitor Traffic and Analytic Rule 1

  • Navigate to: Tools > Power Features > Rule Engine > New
  • Set the Rule Name as: Bandwidth Notification
  • Set the Sort Order as: 5
  • Click Save
  • Click New in the Conditions Area
  • Set the Condition Type as: Suspect Session Count
  • Set the Suspect Session Count as: the number of sessions that you want to visit the site before you are notified. 
  • Set the Operation as: Less Than or Equal To
  • Set the Interval Length as: the amount of time you want to check for the sessions in.
  • Set the Interval Type as: the time unit you want to be checked.
  • Click Save

Example 1: Checks for 50 visits in a minute.

Example 2: Checks for 200 visits in an hour

 

  • Click New in the Conditions Area
  • Set the Condition Type as: Check Store-level Custom Field
  • Set Custom Field Name as: Bandwidth Notification Flag
  • Set Operation as: Contains
  • Set Match String as: False
  • Click Save

 

  • Click New in the Conditions Area
  • Set the Condition Type as: AdCode
  • Set the Operation as: Not Equal To
  • Set the AdCode as: botnotified
  • Click Save

  • Click New in the Actions Area
  • Set the Action Type as: Send Email Template to Addresses
  • Set the Email Template as: Bandwidth Alert
  • Set the Addresses as: the email address you want the notifications to go to.
  • Click Save

 

  • Click New in the Actions Area
  • Set the Action Type as: Set Store-level Custom Field
  • Set the Custom Field Name as: Bandwidth Notification Flag
  • Set the Value as: True
  • Click Save

  • Click New in the Actions Area
  • Set the Action Type as: Set AdCode
  • Set the AdCode as: botnotified
  • Click Save

  • Mark the Conditions dropdown to All
  • Click Save at the top right of the rule

 

Visitor Traffic and Analytic Rule 2

  • Navigate to: Tools > Power Features > Rule Engine > New
  • Set the Rule Name as: Bandwidth Notification Reset
  • Set the Sort Order as: 10
  • Click Save
  • Click New in the Conditions Area
  • Set the Condition Type as: Check Store Level Custom Field
  • Set the Custom Field Name as: Bandwidth Flag
  • Set the Operation as: Equal To
  • Set Match String as: True

  • Click New in the Conditions Area
  • Set the Condition Type as: Is Admin User
  • Click Save
  • Click New in the Conditions Area
  • Set the Condition Type as:URL
  • Set the Operation as: Contains
  • Set the URL as: /store/admin/tools/sessionlist.aspx
  • Click Save

 

  • Click New in the Actions Area
  • Set the Action Type as: Set Store-level Custom Field
  • Set the Custom Field Name as: Bandwidth Notification Flag
  • Set the Value as: False
  • Click Save

  • Mark the Conditions dropdown to All
  • Click Save at the top right of the rule

 

Activate the Notifications

  • Navigate to: Settings > Store Information > Store Custom Fields
  • Make sure the Bandwidth Notification Flag is set as: False
  • Activate both rules created above
Have more questions? Submit a request

Comments