1

quick one for Apache gurus - how to block a hostname that is simply: . -without blocking anything else. Not sure how they managed to achieve this but it seems to be a bot that doesn't want to be identified. Latest IP is 204.45.209.208 uses various OS in user agent string. cheers rob

Rothbert
  • 11
  • 1

1 Answers1

1

You could block it with IP-tables.

iptables -I INPUT -s 204.45.209.208 -j DROP
Bart De Vos
  • 17,911
  • 6
  • 63
  • 82
  • @Rothbert says that the *latest* IP is 204.45... so there are clearly more that have resolved to `.`, so iptables may not be a good solution. – user9517 Mar 05 '11 at 22:30
  • @Iain @TiZon - that's correct, coming from a range of IPs. Wondered if there's a rewrite that would do the trick something like: RewriteCond %{HTTP_HOST} !^. ? – Rothbert Mar 06 '11 at 01:39
  • 1
    Can't he just block whole subnetwork in iptables? – Ency Mar 06 '11 at 09:49