I have an exchange 2007 server that when someone tries to hit a page or directory on the server that does not exist, I want a HTTP 403 to be returned. How can I set that up?
If you configure the 404 error handlers to be a URL so they are redirected to some code and from the code you can return a 403 response to the user. If you have asp enabled you use a simple asp script like:
p.s. if the aim of this config is to limit directory discovery, you will need to point the 403's you are emulating at the same error handler. Also check if IIS is redirecting a /directory request without a / on the end to /directory/ before the 403 is sent, if the directory exists.