Answer the question
In order to leave comments, you need to log in
How to restrict View access on client side and allow on server side?
Day!
I am doing the processing of 404 and unhandled errors on the site, and one thing confuses me - the 404 and unhandled pages are available to the user, it turns out that if the user saves a link to one of these pages, then it will be available to him for viewing. I think that this is not correct and I want to make sure that links to 404 and unhandled pages are not available on the client side and, say, redirect the user to the 404 page always. Are there any standard means in MVC to prevent the user from viewing such pages?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question