You could listen to Creating events, get the newly stored object from the event args and throw if it's of a Type that you don't expect to be stored.
For a sample of how such a listener is created see Db4objects.Db4o.Tests.CLI1.Events.EventRegistryTestCase in the sources.