Minecraft wiki entry for Cave_spider_farming, associated text: When working with the cave spider spawning area, it is strongly recommended to seal off the area you're working with, so that you are not in danger of mobs other than cave spiders attacking.