Manual:$wgRangeBlockUser/en

Details
User agent/range blocking.

Blocks all users using a particular user agent, possibly restricted to a set of IP ranges.

The block is attributed to this user ID.