- Overview
- Basic Terms and Definitions
- Allowed IP Address Types
- Denying an IP, Country, or Continent
- Allowing an IP
- Statistics
Overview
This article explains how to block or allow specific IP addresses, IP ranges, countries, or continents using the Traffic Firewall. This feature helps control website access and manage bot traffic.
Basic Terms and Definitions
Description [Deny]: Use this option to block an IP address, range of addresses, country, or continent.
Description [Allow]: If a range of IPs, a country, or a continent is blocked, this setting overrides it for a specific IP address.
CIDR Notation: A method to block a range of IP addresses using CIDR notation instead of wildcards.
Allowed IP Address Types
The Traffic Firewall allows blocking or allowing traffic in four ways:
-
An IP Address:
- Example: 139.130.4.5
-
An IP Range using Wildcards:
- Example: 139.130.4.*
-
An IP Range using CIDR Notation:
- Example: 139.130.4.1/32
-
A Country or Continent:
- Example: Blocking all traffic from "France" or "Europe".
Denying an IP, Country, or Continent
To block an IP address, range, country, or continent:
- Go to Settings > Security > Traffic Firewall.
- Click New Entry.
- In the IP Address field, enter:
- A specific IP address (e.g., 12.34.56.78).
- A wildcard range (e.g., 12.34.56.*).
- A CIDR notation range (e.g., 12.34.56.0/24).
- Alternatively, select a Country or Continent from the dropdown lists.
- Enter a Description to identify the rule.
- Set the Priority value (lower values are processed first).
- In the Action dropdown, select Deny.
- Click Save to apply the block.
Note: The blacklist is checked only when a session is created. If a blocked visitor has an active session, they can continue browsing until their session expires.
Allowing an IP
To override a block and allow a specific IP:
- Go to Settings > Security > Traffic Firewall.
- Click New.
- Enter the IP Address you want to allow.
- Set the Priority to -1 (to ensure it is processed first).
- In the Action dropdown, select Allow.
- Click Save to apply the rule.
Statistics
After saving an entry, you can view its statistics:
- Hits: Number of times the rule was triggered.
- Most Recent Hit: Last time the rule was applied.
- User Agent: Details about the blocked or allowed visitor.
Summary: The Traffic Firewall allows blocking and allowing traffic based on IP addresses, ranges, CIDR notation, countries, or continents. Setting proper priority values ensures your rules are processed correctly.