Apache2 mod_spamhaus


Languages: C
Original Author: Luca Ercoli – http://www.lucaercoli.it/en/mod_spamhaus.html
Description: mod_spamhaus is an Apache module that use DNSBL in order to block spam relay via web forms, preventing URL injection, block http DDoS attacks from bots and generally protecting your web service denying access to a known bad IP address.

I fixed some compiling error, like this:

apxs2 -Wc, -Wc,-DDST_CLASS=3 -c src/mod_spamhaus.c
/usr/share/apr-1.0/build/libtool –silent –mode=compile –tag=disable-static x86_64-linux-gnu-gcc -std=gnu99 -prefer-pic -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -DDST_CLASS=3 -c -o src/mod_spamhaus.lo src/mod_spamhaus.c && touch src/mod_spamhaus.slo
In file included from /usr/include/string.h:635:0,
from /usr/include/apr-1.0/apr_want.h:63,
from /usr/include/apr-1.0/apr_pools.h:47,
from /usr/include/apr-1.0/apr_tables.h:26,
from /usr/include/apr-1.0/apr_hooks.h:22,
from /usr/include/apache2/ap_hooks.h:40,
from /usr/include/apache2/ap_config.h:25,
from /usr/include/apache2/httpd.h:44,
from src/mod_spamhaus.c:28:
src/mod_spamhaus.c: In function ‘check_whitelist’:
src/mod_spamhaus.c:183:42: error: ‘conn_rec’ has no member named ‘remote_ip’
if ( strcmp(lista[count],r->connection->remote_ip) == 0 ) return 1;

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *