IIS Deny Domain Access
Write an ISAPI Filter which checks the REMOTE_ADDR server variable against a
"deny list" read from a file, and if it matches, send a 302 redirection.
Complexity on the order of 100 lines of code (for bullet-proof, error
handling, etc).
Using IP is not necessarily a good way to identify users -- consider AOL
Proxy users -- every one of them looks like the same set of IPs but could be
millions of different users.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
I have a current requirement to deny access to a particular website from a
list of domains. I can add these domains to a deny list in IIS, however that
doesn't give me the ability detect these domains and then redirect users to
specific deny pages based on the domains to which they are members.
I can include a function on all of my webpages to detect the various domains
and redirect users, however this would be a very tedious process since I
would have to include this domain validation function on all pages.
I need to find a better more efficient way of doing this, so any suggestions
are welcome...
|