mod_evasive icon indicating copy to clipboard operation
mod_evasive copied to clipboard

Check X-Forwarded-For header (or another header, depending on configuration)

Open jvdmr opened this issue 2 months ago • 0 comments

Currently mod_evasive only checks the requests's useragent_ip. This is useless when running behind a reverse proxy (or NAT firewall?).

Check if the X-Forwarded-For header exists and contains a valid ip address, then use that, falling back to the useragent_ip if the header is not usable.

Also allow to override which header to use through configuration.

(as mentioned in #54 and #46)

jvdmr avatar Oct 09 '25 13:10 jvdmr