Minecraft – Cave spider trap issues

minecraft-java-edition

I have a cave spider spawner and it works great other than the area where I hit them. I've tried several designs but they can still hit me. Does anyone have any idea how to fix this?
This is my current setup:
enter image description here
The spiders climb to the top of that hole where they are crushed down to one hit. The problem is no matter where I am around the hole I get hit and poisoned is there a way I can stop them from hitting me? I need a design that prevents them from hitting me that is my question does anyone have a design?

Best Answer

I have found a design that appears to work you still get hit but it's only if you want to get hit. Meaning if you purposely go into the areas where they can hit you. If you go to this link you can find the video I watched to discover this design. Thank you all for all of the help. Here is the link: