Foro de elhacker.net

Programación => Desarrollo Web => Mensaje iniciado por: [u]nsigned en 22 Octubre 2010, 17:42 pm



Título: Filtrar IP en Apache
Publicado por: [u]nsigned en 22 Octubre 2010, 17:42 pm
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
  1. <Directory "C:/AppServ/www">
  2.    #
  3.    # Possible values for the Options directive are "None", "All",
  4.    # or any combination of:
  5.    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  6.    #
  7.    # Note that "MultiViews" must be named *explicitly* --- "Options All"
  8.    # doesn't give it to you.
  9.    #
  10.    # The Options directive is both complicated and important.  Please see
  11.    # http://httpd.apache.org/docs/2.2/mod/core.html#options
  12.    # for more information.
  13.    #
  14.    Options Indexes FollowSymLinks MultiViews ExecCGI
  15.  
  16.    #
  17.    # AllowOverride controls what directives may be placed in .htaccess files.
  18.    # It can be "All", "None", or any combination of the keywords:
  19.    #   Options FileInfo AuthConfig Limit
  20.    #
  21.    AllowOverride All
  22.  
  23.    #
  24.    # Controls who can get stuff from this server.
  25.    #
  26.    Order allow,deny
  27.    Allow from all
  28.  
  29. </Directory>

La linea resaltada deberia quedar:

Código
  1. Allow from 127.0.0.1, 128.100.10.56

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

Saludos


Título: Re: Filtrar IP en Apache
Publicado por: [u]nsigned en 23 Octubre 2010, 23:13 pm
Alguien?  :-\


Título: Re: Filtrar IP en Apache
Publicado por: Nakp en 24 Octubre 2010, 07:14 am
espacios :)

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



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