Filtrar IP en Apache

(1/1)

[u]nsigned:
Hol,a estoy haciendo una intranet en php, y necesitaria que la misma solo sea accesible a determinadas IP's (privadas) queria saber si me podrian indicar que deberia modificar en la config de aapche para que solo sea accesible a ciertas IP's (4 o 5) y a todas la demas se niegue el servicio.

Mi httpd.conf

Código
<Directory "C:/AppServ/www">
   #
   # Possible values for the Options directive are "None", "All",
   # or any combination of:
   #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
   #
   # Note that "MultiViews" must be named *explicitly* --- "Options All"
   # doesn't give it to you.
   #
   # The Options directive is both complicated and important.  Please see
   # http://httpd.apache.org/docs/2.2/mod/core.html#options
   # for more information.
   #
   Options Indexes FollowSymLinks MultiViews ExecCGI
 
   #
   # AllowOverride controls what directives may be placed in .htaccess files.
   # It can be "All", "None", or any combination of the keywords:
   #   Options FileInfo AuthConfig Limit
   #
   AllowOverride All
 
   #
   # Controls who can get stuff from this server.
   #
   Order allow,deny
   Allow from all
 
</Directory>

La linea resaltada deberia quedar:

Código
Allow from 127.0.0.1, 128.100.10.56

Es correcto, o como deberia separa la lista de IP's?

Saludos

[u]nsigned:
Alguien?  :-\

Nakp:
espacios :)

http://httpd.apache.org/docs/2.1/mod/mod_authz_host.html


el "lenguaje" del bbc es "apache" :P haha

Navegación

[0] Índice de Mensajes