Sometimes you want to take control over all of your requests prior to them getting too deep into your application. While you could do this with an
HttpHandler or an
HttpModule, that wouldn't be very MVC-like. Instead, we will implement this sort of logic in the next step of the pipeline by way of a custom
In our example, we will take a look at implementing a blacklist filter, using a wide open wildcard route and a
RouteConstraint that checks all requests against a few different types of blacklists. If the user is on the blacklist, we will have the option to route them off our site or to a page in our site specifically for blacklisted folks.