Handling Bad URL

I need to handle bad url in mvc, forexample if i have a url "example.com" and the user came in and put his own url like "example.com/?zeb%n%n%n" i want to show error for this type of url . The route i have is default route


            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Login", action = "Login", id = UrlParameter.Optional }