Consider that a request is sent to this path:
http://domain/users/1534
This URL is in public security, so everyone can see it without being authenticated in the site (without being logged in).
Now consider that another URL should be secure:
http://domain/admin/update-user
This URL should pass the authentication process.
Now, In my code, somewhere I need to know if the current path is a secure path or not (please don't ask why, and also by secure path I don't mean SSL, I'm just talking about paths for which login is required).
How can I know that HttpContext.Request.Url.AbsolutePath is a secure path?
Update: What I need is something like:
SecurityHelper.ShouldCurrentRequestPathBeAuthenticated(Request.Url.AbsolutePath)