Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In this tutorial we will block an IP address range.
REQUIREMENTS
- Troll 6.x
- Drupal 6.x
STEPS
- Navigate to
admin/user/troll/ip_blacklist/import
- Into the field
List:
type in the start of IP range to block.
For example if you want to block172.16.254.0
through172.16.254.255
then type in172.16.254.0/24
This would block the 256 IP address locations.Notes:
-The IP format must be*.*.*.*/24
-Replace * by numbers. You must add/24
at the end./24
is a CIDR notation. Read more - To view the full list of blacklisted IPs go to
admin/user/troll/ip_blacklist/search
Search for any IP within the range you just blocked. For example172.16.254.50
without the quotes. If successful the IP shows as blacklisted.