Sometimes you want to perform logic either before an action method is called or after an action method runs. To support this, ASP.NET MVC provides filters. Filters are custom classes that provide both a declarative and programmatic means to add pre-action and post-action behavior to controller action methods.
 
https://msdn.microsoft.com/en-us/library/gg416513(VS.98).aspx 
 
There are 5 filters available in ASP.Net MVC.
  1. Authentication Filter
  2. Authorization Filter 
  3. Action Filter
  4. Result Filter
  5. Exception Filter 
 
Regarding custom filter, the above all are customize one. that is you can customize the above based on your need. 
 
Hope this helps!