What do you mean by "block"?
Hide local display of server replies to (automated or manual) requests of ---?
In that case, script raw events (for whois/whowas etc, here's a raw reference), and on notice events for all the anope services replies (nickserv, chanserv etc). Also note that different networks may use different services implementations.

If that's not what you're looking for, please exemplify.