Re: Restrict page access by IP address



You can do it right in IIS.
In the IIS 6.0 Administrator's guide, there's complete instructions.

Open D:\WINDOWS\Help\IIS.chm

and search for "IP addresses, controlling access to applications"

Securing Sites with IP Address Restrictions

You can configure your Web site to grant or deny specific computers,
groups of computers, or domains access to Web sites, directories, or files.

IP address restrictions apply only to IPv4 addresses.

Important : You must be a member of the Administrators group on the local computer to perform
the following procedure (or procedures), or you must have been delegated the appropriate authority.

To grant or deny access to a group of computers
1.. In IIS Manager, expand the local computer, right-click a Web site, directory, or file, and
click Properties.
2.. Click the Directory Security or File Security tab. In the IP address and domain name
restrictions section, click Edit.
3.. Click Granted access or Denied access. When you select Denied access, you deny access to
all computers and domains, except to those that you specifically grant access. When you select
Granted access, you grant access to all computers and domains, except to those that you specifically
deny access.
4.. Click Add.
5.. Click Group of computers.
6.. In the Network ID box, type the IP address of the host computer.
7.. In the Subnet mask box, type the subnet ID for the computer you want grant or deny access to.
8.. Click OK three times.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Chris Fulstow" <chrisfulstow@xxxxxxxxxxx> wrote in message
news:1144230484.848519.55460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I need to restirict access at the page level to a range of IP
addresses. What's the best approach? I thought of building an HTTP
module that could compare the requesting IP with a restricted range,
specified in web.config. Any thoughts?

Thanks,
Chris




begin 666 important.gif
M1TE&.#EA"@`*`)'_````_P``@,# P)F9F2'Y! $```(`+ `````*``H```(=
?E!6G"+D!1%-PB#$9L'A"$('9)P:6`4GFTYR/*Q0`.P``
`
end

.



Relevant Pages

  • Re: Installing IIS
    ... You state "but new computers DO COME WITH IT on a separate restore ... This is a simple matter to do with IIS. ... much different from simply installing the software. ... restore drive or in a designated folder on the main drive OR FOR A SMALL ...
    (microsoft.public.sqlserver.setup)
  • Re: W2K IIS under attack
    ... Is this Internet Web server or is it Intranet. ... Which ports are opened? ... Do you have any IIS logs to check out what kind of requests IIS received... ... > computer form other computers under the local network. ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP on IIS was working, suddenly it aint!
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Component Services> Computers> My Computer> COM+ ... >username/password between COM+, IIS ...
    (microsoft.public.inetserver.iis)
  • Re: Cloned Windows 2000 IIS
    ... > That's how they can connect remotly to other computers> and gain access to other wwwroot. ... >>> I've installed IIS on a Win2k workstation that i used> to ... >>> clone a lab of 20 computers. ...
    (microsoft.public.inetserver.iis.security)
  • Re: server cluster and the NAS drive
    ... I did configure it on two computers. ... further what must i do to the web server IIS on windows server 2003?. ... Messaging and Security, MCT, MCITP, MCTS and other stuff ...
    (microsoft.public.windows.server.clustering)