Bloccare gli spambot su Apache con mod defensible

From RVM Wiki
Revision as of 14:31, 10 January 2013 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Installare mod_defensible
sudo apt-get install libapache2-mod-defensible
  • Abilitare il modulo
sudo a2enmod defensible
  • Creare il file di configurazione
sudoedit /etc/apache2/mods-enabled/defensible.conf
<IfModule mod_defensible.c>d
    DnsblUse On
    # Use only one, or there will be a big lag in serving pages
    DnsblServers zen.spamhaus.org bl.blocklist.de 
    # These are other lists
    # to check them vs ip 1.2.3.4 do:
    # host 4.3.2.1.bsb.spamlookup.net
    #DnsblServers sbl-xbl.spamhaus.org bsb.spamlookup.net bl.blbl.org opm.blitzed.org sbl-xbl.spamhau
s.org xbl-bl.spamhaus.org  httpbl.abuse.ch
    # Use this only if mod_defensible is compiled with UDNS. Debian 1.4-3 does not use udns
    #DnsblNameserver 127.0.0.1
</IfModule>
  • Riavviare apache
  • Verificare nei log
sudo cat /var/log/apache2/error.log | grep -i dnsbl
[Thu Jan 10 15:00:38 2013] [error] [client 1.2.3.4] denied by DNSBL: sbl-xbl.spamhaus.org for: /path/d/2378-2/PB290094.JPG

Alternative


Riferimenti