Blocking rules allow you to control collection from certain IP addresses or ISPs that you do not wish to track and contribute to your data credit allowance. These can perhaps be internal IP addresses that you do not want to track or the IP address of known bots.
Adding a blocking rule
To add a blocking rule:
- From the navigation bar, go to Settings > Blocking Rules.
- Click the + Add Blocking Rule button.
The following screen appears:
- In the Scope drop-down menu, select if you want to block an IP address or an ISP.
- In the Rule text box, depending on the Scope selected above, enter an individual IP address, an IP range, or the name of the ISP.
- To protect against collection from bots, DXA automatically blocks data collection from individual IP addresses where an unusually high volume of traffic is detected. To turn this off, in the Type dropdown menu, select Whitelist.
- If necessary, enter a Description about what is being blocked.
- To save, click Save Blocking Rule.
How do I add multiple IPs?
If you have a large number of IP addresses that you don't want to track, you can add IP ranges based on CIDR notation. More information, along with a helpful guide on converting to IP ranges, can be found here.
Examples of accepted IP addresses and ranges:
Why are some IP addresses showing as "Automatic Block"?
To protect against collection from bots, if DXA detects unusually high volumes of traffic from a single IP address, collection from that address will be automatically blocked.
Removing blocked IPs
You can remove a blocking rule at any time by clicking the Delete icon next to the relevant rule that you no longer wish to block or whitelist.
This will result in Sessions from the respective IP address or ISP being collected. However, this does not work retrospectively so will not result in the collection of previous sessions from that rule.