G
G
Grigory Lugovoy2014-12-08 11:40:59
ASP.NET
Grigory Lugovoy, 2014-12-08 11:40:59

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

1 answer(s)
A
asdz, 2014-12-08
@Grirory

I don't understand what you mean

I want to make sure that on the client side links to 404 and unhandled pages are not available and let's say the user is redirected to the 404 page always

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question