Manual:$wgCookieSetOnIpBlock/en

Best used together with.