asp.net mvc 4 - Check if Ip is blocked and redirect user to 404 not found -


i have asp.net mvc 4.

also have userbasecontroller inherited controller. in onactionexecuting checking if ip blocked. if ip blocked want show user 404 page html. when redirect gets infinite redirects loop. correct way show 404 page?


Comments