Asp – How to make a beta access page like the one on superuser.com

asp.netasp.net-mvcbeta

I'm working with ASP.Net MVC and I would like to make a web site accesible via the internet, but only to a select few people right now. I want to do something basically exactly like the beta access page with password just like they did on stackoverflow, serverfault, and superuser.

I don't just want to check and redirect in the home controller, I want it to always go there no matter what url is used.

Anyone know how they do it?

Best Answer

I don't know enough about MVC in particular, but it would probably mean creating a base controller and overriding OnActionExecuting or OnAuthorization.