Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > IIS Deny Domain Access
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th February 14:33
galahad
External User
 
Posts: 1
Default IIS Deny Domain Access



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...
  Reply With Quote


  sponsored links


2 7th February 14:33
david wang [msft]
External User
 
Posts: 1
Default 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...
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666