Telligent Community Server allows you to blacklist specific IP addresses or a range of IP addresses with the IP banning functionality. You can also give these same IP addresses access again by removing them from the ban list.
Note that by default, the IPBanning module is commented out in the communityserver.config file. To enable this module, you need to enable it in the communityserver_override.config file.
When entering a range of addresses, the code determines the class of IP address on the basis of the first and second octets. If you have an IP address in the format of a.b.c.d, "a" will be the same for both addresses in a class A range, while "a" and "b" will be the same for a class B range.
With a.b.c.d, if you are entering a class A range, the starting IP value of b.c.d must be greater than or equal to the first address in the range you want to ban, while the ending address must be one less than the ending value. For example, to block class A addresses between 10.15.1.15 through 10.16.10.19, you would enter 10.15.1.15 as the starting value and 10.16.10.18 as the ending value. If you are entering a class B address range, the starting values are the beginning of the banned set, while the ending value would be one less than the end of the range you want to ban. For example to block class B addresses between 10.15.1.15 and 10.15.101.110, your starting value would be 10.15.1.15 and your ending value would be 10.15.101.109.
To blacklist (block) an IP address:
- Edit your communityserver_override.config file with the following, then save the file:
<Override xpath="/CommunityServer/CSModules" mode="add"> <add name = "IPBanning" type = "Telligent.Evolution.IPBanning.Components.IPBanningModule, Telligent.Evolution.Components" /> </Override>
- Navigate to the site home page (or profile page).
- Mouse over Management.
- Click Administration.
- Navigate to Moderation > IP banning.
- Do one of the following:
To blacklist one IP address from accessing the community, type it in the IP Address field.
or
To blacklist a range of IP addresses from accessing the community, add the starting IP address value in the IP Address field, then the ending IP address value in the Range (optional) field.
- Click Add IP Address. The banned IP address(es) and ranges appear in a list as shown in the previous capture. You can remove any address or range from the ban list by clicking Delete next to the item(s) on the list.