Welcome Guest, Not a member yet? Register   Sign In
Routing bad URLs
#2

Honestly, it's going to depend on your environment, but in your example I would usually give the user a 404.

If it was an invalid parameter (not a case of too many parameters), I would usually redirect and display a validation message. In my environment, though, this is one of the few reasons I might send the user to an index page if the URL contained a method name. I usually have to assume that too many parameters is a bad link or someone trying to find some way to gain unauthorized access to data by manipulating the URL, and a 404 makes it easy to log and respond, if necessary, to either condition.
Reply


Messages In This Thread
Routing bad URLs - by pb.sajjad - 07-29-2016, 12:29 AM
RE: Routing bad URLs - by mwhitney - 07-29-2016, 07:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB