elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  Filtrar IP en Apache
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Filtrar IP en Apache  (Leído 3,780 veces)
[u]nsigned


Desconectado Desconectado

Mensajes: 2.397

JS/Node developer


Ver Perfil WWW
Filtrar IP en Apache
« 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


« Última modificación: 22 Octubre 2010, 17:55 pm por [u]nsigned » En línea

No hay atajo ante la duda, el misterio se hace aquí...
Se hace carne en cada uno, el misterio es existir!
[u]nsigned


Desconectado Desconectado

Mensajes: 2.397

JS/Node developer


Ver Perfil WWW
Re: Filtrar IP en Apache
« Respuesta #1 en: 23 Octubre 2010, 23:13 pm »

Alguien?  :-\


En línea

No hay atajo ante la duda, el misterio se hace aquí...
Se hace carne en cada uno, el misterio es existir!
Nakp
casi es
Ex-Staff
*
Desconectado Desconectado

Mensajes: 6.336

he vuelto :)


Ver Perfil WWW
Re: Filtrar IP en Apache
« Respuesta #2 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
« Última modificación: 24 Octubre 2010, 07:16 am por Nakp » En línea

Ojo por ojo, y el mundo acabará ciego.
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines