When we enter an URL in the address bar, and press key "Enter", there is sth to handle this request. If the action is opened to anonymous users, the requested webpage will be shown. If the action is opened to authorized users, user will be redirected to log in page.
Now I want to add some actions during this process: after pressing “Enter” and before displaying the correct page. Where should I add code? I don’t want to modify controllers.