I want to restrict users from directly opening my site (somewhat funny but that is the scenario).
The user should first go to another site, login there and then only can they be allow to redirect to my site from that site only.
I tried to access Request Object in below method but it is throwing an exception:
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterRoutes(RouteTable.Routes);
}
My site is in MVC2 C#
There is no session, login on my site
Thanks in advance