[ninux-Firenze] ban IP su drupal

Alessio nolith at abisso.org
Tue Mar 18 09:27:27 CET 2014


Qui spiegano come funziona:
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/ip_address/7

> If Drupal is behind a reverse proxy, we use the X-Forwarded-For
> header instead of $_SERVER['REMOTE_ADDR'], which would be the IP
> address of the proxy server, and not the client's. The actual header
> name can be configured by the reverse_proxy_header variable.


Stando alla docuemntazione di apache dovrebbe essere già così:
https://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers
nel caso in cui il proxy sia impostato con la direttiva ProxyPass
https://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass


Vai Gabriel, ti ho indicato un po' di roba, ora tocca a te ;)

nolith



More information about the Firenze mailing list