Good afternoon, I've developed a system and I have a logic that does not allow profiles that are not authorized to access parts of the system that are not allowed for it. What happens is that when trying to access an area that is not allowed, IIS gives a 404 (Not Found) error page in response to the failed attempt. What I wanted to know is: Is there a way to put a custom error page in IIS so that when this happens, show me my custom error page? Because I'm afraid of the security of my application.
If anyone can help, I would be grateful!