homepage Welcome to WebmasterWorld Guest from 54.227.25.58
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Deprecated - Microsoft Windows OS (XP/NT/Vista)
Forum Library, Charter, Moderators: bill

Deprecated - Microsoft Windows OS (XP/NT/Vista) Forum

    
How do I block an IP address from accessing my site?
In Windows 2000 or 2003 server?
sting_pana




msg:1570605
 1:54 pm on Aug 31, 2005 (gmt 0)

How do I block an IP address from accessing my site?

I know the procedire in Apache but in IIS?

Can Anyone help me?

Thanks

 

sting_pana




msg:1570606
 7:52 pm on Aug 31, 2005 (gmt 0)

Thanks for the quick response to everybody, I've solved alone this:

Granting or Denying Access to a Computer (IIS 6.0)

Use the following procedure to grant or deny access to a specific computer.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

Procedures
To grant or deny access to a computer
1.
In IIS Manager, double-click the local computer; right-click the Web Sites or FTP Sites folder, an individual Web or FTP site, a virtual directory, or a file; and then click Properties.

Note

Configuration settings made at the Web or FTP Sites level are inherited by all of the Web or FTP sites on the server. You can override inheritance by configuring the individual site or site element.

1.
Click the Directory Security or File Security tab, and then do one of the following:

For Web sites, in the IP address and domain name restrictions section, click Edit.

For FTP sites, continue to the next step.


2.
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.

3.
Click Add, and then click Single computer.

4.
Click DNS Lookup to search for computers or domains by name, rather than by IP address.

5.
Type the DNS name for the computer. IIS searches on the current domain for the computer, and if found, enters its IP address in the IP address box.

The following information is important to remember when using the DNS Lookup feature:

It causes a performance decrease on your server while it is looking up DNS addresses.

A user accessing your Web server through a proxy server appears to have the IP address of the proxy server.

Some user server access problems can be corrected by entering the "*.domainname.com" syntax, rather than the "domainname.com" syntax.


6.
Click OK three times.

bill




msg:1570607
 12:45 am on Sep 1, 2005 (gmt 0)

Welcome to WebmasterWorld sting_pana. Sorry someone couldn't get to you sooner, but it's good that you were able to find the information on your own. The Microsoft TechNet article you quoted is here: Granting or Denying Access to a Computer (IIS 6.0) [microsoft.com]

One of the first places to look for this sort of information is the Microsoft site itself. Google even has a specialized search site focused on Microsoft: Search Microsoft-related sites using Google [google.com]

salil




msg:1570608
 8:32 pm on Sep 5, 2005 (gmt 0)

It can be done from .htaccess file also

bill




msg:1570609
 12:28 am on Sep 6, 2005 (gmt 0)

It can be done from .htaccess file also

.htaccess doesn't work on IIS. That's a configuration file for Apache servers. While you can install Apache on a Windows server, this question was specific to IIS.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Deprecated - Microsoft Windows OS (XP/NT/Vista)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved