Forbid hooks for certain functions