Test Foro de elhacker.net SMF 2.1

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 (c,27) [Seleccionar]
<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:

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