MyBB Community Forums

Full Version: Banning IP Addresses ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know how to ban individual IP addresses - but what if I want to ban a RANGE of IP addresses?

For example - I know I can ban 199.122.33.44 - but what if I want to ban ALL IP's in the 199.122 range? Can wildcards be used so that I have the option to ban all IP's in the 199.122.*.* range?

Please advise.

TIA
banning a range is simply by adding the ip without the last piece

e.g 192.168.0

this will ban from 192.168.0.1 till 192.168.0.255

regards
zaher1988 Wrote:banning a range is simply by adding the ip without the last piece

e.g 192.168.0

this will ban from 192.168.0.1 till 192.168.0.255

regards

So in the example I used, I need to only put in 199.122 - and it will ban ALL IP's that begin with those parameters?

TIA
I dont think so, i guess it is only about the last part, not any previous one.

so only 192.168.0. and not 192.168.

regards
How the IP banning works is that it searches for that banned string in the IP address of the user. If there is a match, then the user is shown the banned page.

If you have something like 192.168.1 (notice there is no trailing dot) then someone else with an IP of xyz.192.168.1 will be banned.

Similarly if you try to ban 124.158., notice that even if there is a trailing dot, that it will match xyz.124.158.abc as well as 124.158.xyz.abc.