Interdire une IP à Apache 2 [Résolu] - Linux et OS Alternatifs
Marsh Posté le 24-02-2006 à 08:29:34
iptables ?
Mais tu comptes bloquer tous les gens qui se connectent sur ton serveur
Il s'agit peut etre tout simplement d'un bot/moteur de recherche...
Marsh Posté le 24-02-2006 à 08:49:10
+1
accessoirement regarde son user-agent dans tes logs apache
Marsh Posté le 24-02-2006 à 17:02:31
Oki merci pour vos réponses, je n'utilise pas iptables (pas encore en tout cas).
Marsh Posté le 24-02-2006 à 01:20:59
Yop,
En faisant un netstats, je me suis apercu qu'une IP AOL avait plusieurs processus sur mon serveur web.
1:19 cartman@goldzone ~% netstat| grep aol
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10215 ESTABLISHED
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10214 ESTABLISHED
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10213 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10212 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10219 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10218 ESTABLISHED
tcp 0 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10217 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10216 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10199 ESTABLISHED
tcp 1 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10197 CLOSE_WAIT
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10195 ESTABLISHED
tcp 1 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10193 CLOSE_WAIT
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10207 ESTABLISHED
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10206 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10205 ESTABLISHED
tcp 1 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10204 CLOSE_WAIT
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10203 ESTABLISHED
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10202 ESTABLISHED
tcp 0 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10201 ESTABLISHED
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10200 ESTABLISHED
tcp 1 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10183 CLOSE_WAIT
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10182 ESTABLISHED
tcp 1 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10181 CLOSE_WAIT
tcp 1 10881 192.168.0.2:www ACCEBD2E.ipt.aol.:10180 LAST_ACK
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10176 ESTABLISHED
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10191 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10190 ESTABLISHED
tcp 1 9521 192.168.0.2:www ACCEBD2E.ipt.aol.:10188 LAST_ACK
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10186 ESTABLISHED
tcp 0 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10185 ESTABLISHED
tcp 1 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10184 CLOSE_WAIT
tcp 0 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10167 ESTABLISHED
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10166 ESTABLISHED
tcp 1 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10163 CLOSE_WAIT
tcp 0 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10175 ESTABLISHED
tcp 1 12240 192.168.0.2:www ACCEBD2E.ipt.aol.:10172 CLOSE_WAIT
tcp 0 9520 192.168.0.2:www ACCEBD2E.ipt.aol.:10171 ESTABLISHED
tcp 0 13600 192.168.0.2:www ACCEBD2E.ipt.aol.:10169 ESTABLISHED
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10159 ESTABLISHED
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10155 ESTABLISHED
tcp 1 9521 192.168.0.2:www ACCEBD2E.ipt.aol.:10112 LAST_ACK
tcp 0 10880 192.168.0.2:www ACCEBD2E.ipt.aol.:10120 ESTABLISHED
Comment puis-je dire à Apache 2 de bloquer cette IP ?
Merci.
Message édité par goldyfruit le 24-03-2006 à 15:06:03
---------------
http://wiki.incloudus.com/display/DOC | http://blog.incloudus.com | http://wiki.goldzoneweb.info | http://www.stendhalclub.fr