mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Exported API for registering custom variables. See #120.
Simple example in api/mod_var_remote_host_port.c
This commit is contained in:
@@ -24,3 +24,13 @@ access to ModSecurity structures. For example:
|
||||
|
||||
apxs -I<MODSECURITY_SOURCE_CODE> -I/usr/include/libxml2 -cia mod_op_strstr.c
|
||||
|
||||
3)
|
||||
|
||||
Module mod_var_remote_addr_port.c creates a custom variable "REMOTE_ADDR_PORT"
|
||||
that combines the REMOTE_ADDR and REMOTE_PORT into a.b.c.d:port format.
|
||||
|
||||
Compiling this module is more involved because it requires
|
||||
access to ModSecurity structures. For example:
|
||||
|
||||
apxs -I<MODSECURITY_SOURCE_CODE> -cia mod_var_remote_addr_port.c
|
||||
|
||||
|
Reference in New Issue
Block a user