lunes, 4 de marzo de 2013

Configuración apache

Ocultando información a los visitantes de la página.

lynx -head -mime_header http://www.site.com
    HTTP/1.1 200 OK
    Date: Mon, 04 Mar 2013 09:38:24 GMT
    Server: Apache/2.2.16 (Debian)
    X-Powered-By: PHP/5.3.21-1~dotdeb.0
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: PHPSESSID=dd8m73c2k61v21k0qn386cfkd2; path=/
    Vary: Accept-Encoding
    Connection: close
    Content-Type: text/html; charset=ISO-8859-1

Añadiendo a apache:

    ServerSignature Off
    ServerTokens Prod

y modificando en php.ini
    expose_php = Off

Obtendremos:

lynx -head -mime_header http://www.gescampus.com:8081
    HTTP/1.1 200 OK
    Date: Mon, 04 Mar 2013 09:41:12 GMT
    Server: Apache
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: PHPSESSID=dv3je2ploues02kd09l0sr1n96; path=/
    Vary: Accept-Encoding
    Connection: close
    Content-Type: text/html; charset=ISO-8859-1

No hay comentarios:

Publicar un comentario