Bloccare gli spambot su Apache con mod defensible: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
m Created page with "* Installare mod_defensible sudo apt-get install libapache2-mod-defensible * Abilitare il modulo sudo a2enmod defensible * Creare il file di configurazione sudoedit /etc/apa…"
 
mNo edit summary
 
Line 12: Line 12:
     DnsblUse On
     DnsblUse On
     # Use only one, or there will be a big lag in serving pages
     # Use only one, or there will be a big lag in serving pages
     DnsblServers zen.spamhaus.org
     DnsblServers zen.spamhaus.org bl.blocklist.de
     # These are other lists
     # These are other lists
     # to check them vs ip 1.2.3.4 do:
     # to check them vs ip 1.2.3.4 do:
Line 29: Line 29:


  [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
  [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
* È possibile segnalare wu http://www.blocklist.de gli IP maligni


==Alternative==
==Alternative==

Latest revision as of 14:31, 10 January 2013

  • 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