Re: Restrict page access by IP address
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Wed, 5 Apr 2006 09:10:17 -0400
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
.
- Follow-Ups:
- Re: Restrict page access by IP address
- From: Chris Fulstow
- Re: Restrict page access by IP address
- References:
- Restrict page access by IP address
- From: Chris Fulstow
- Restrict page access by IP address
- Prev by Date: Sanitize/scrub user HTML-code
- Next by Date: themes and xslt
- Previous by thread: Re: Restrict page access by IP address
- Next by thread: Re: Restrict page access by IP address
- Index(es):
Relevant Pages
|