I was wanting to know how to block someone with a IP that changes

To block a range of IP's

Like if someone has 161.26.10.0
the first 2 sets of numbers rarely change but the 2nd set.. How would I block the whole 161.26 range?

Or is there a way to trace there IP and block them no matter what there IP changes too...

And info would be appreciated