Moved the IP-blacklisting code.

  Now it is in the right place.