Erik is right.However, If your question is looked from different perspective, it seems like you are looking for some sort of Authentication mechanism. Are you sure you are not looking for Authentication?
If that is the case, go for looking into FormsAuthentication and in your action method, check whether request is authenticated request.