ASP.NET CustomErrors - RemoteOnly where "remote" means outside of our network

asp.net, custom-errors

Solution

How about a friendly error page with additional info for internal guys (stack trace, line numbers etc)

You could easily add an ip address check in your custom error page and hide the nasty details from outside visitors.

Problem

Does anybody have any clever solutions that they've used to turn on customErrors for everybody except for "us", where us = everybody on our network, IP range, etc. Therefore, outside world: friendly error page. Us: nasty yellow screen.

Original source