Manual:$wgCookieSetOnIpBlock

Best used together with .