You can either completly disable spiders or enable them with invisibility or Invisibility with fire. If you enable them with fire, they will not take damage from fire or lava.
You can enable and disable Normal and Cave spiders in the Config.
Code (Text):
version: "1.0.3"
#AntiSpiders by AbisGamer
#Block Spiders | TRUE means they won't spawn. | You'll need to find alternative ways to get spider loot
Normal_Spider: true
Cave_Spider: true
#Ways to get loot
#Invisible Spiders | Spawns spiders with invisibility so only the eyes are visible. A good way of getting drops. THIS WILL MAKE ALL SPIDERS SPAWN
Invisible_Spiders: false
#Invisible Spiders with Fire to make them more visible. They won't burn and cannot be killed with fire or lava.
Fire_Invisible_Spiders: false #Invisible spiders must be enabled for this to work
#Want more features? Write a review at the resource page on Spigot !
#Resource Link -> https://www.spigotmc.org/resources/antispider-prevent-spiders-from-spawning.105558/