Scenarios For Implementing Custom Action Filters In ASP.NET MVC | ASP.NET MVC Custom Action Filters | ASP.NET MVC Tutorial

The possible uses for action filters are as varied as the actions to which they can be applied. Some possible uses for action filters include the following:
  • Logging in order to track user interactions.
  • "Anti-image-leeching" to prevent images from being loaded in pages that are not on your site.
  • Web crawler filtering to change application behavior based on the browser user agent.
  • Localization to set the locale.
  • Dynamic actions to inject an action into a controller.