Manual:$wgCookieSetOnIpBlock

Best used together with Manual:$wgSecretKey.