title: Overriding a global action filter
body: <p>A handful of pages on my website need to use SSL, so I've added <code>[RequireHttps]</code> to the relevant controllers. However, I still want the majority of my pages to always use non-SSL so I successfully used <a href="https://stackoverflow.com/questions/1566928/how-to-step-out-from-https-to-http-mode-in-asp-net-mvc/1570437#1570437">code I found on SO</a> to create a custom <code>[DoNotUseHttps]</code> filter.</p>
  
  <p>To make things easier I'd like to include this non-SSL filter by default, so I added it to the global filters which are set in the Global.asax file. However, I seem to have now created an infinite loop with each filter redirecting to the other.</p>
  
  <p>Which leads me to my question... is there anything I can add to my global filter to detect if the <code>[RequireHttps]</code> has been already applied to the controller?</p>