Why do spiders die after giving birth?

Online Answer
Because it depletes their resources, nutrients. Not all spiders die after giving birth, but some due. On an evolutionary scale the only goals is to transfer its genetics into the next generation so this is sufficient..
Related Questions 📌
Eucalyptus, tea-tree or even peppermint oils might keep the spiders out. While some might enjoy the smell, the spiders do not. Spray around windows and doors. A similar option is vinegar.
The story goes that conkers contain a noxious chemical that repels spiders but no-one's ever been able to scientifically prove it. There's hearsay that if a spider gets close to a conker it will curl its legs up and die within one day. Others say spiders will happily crawl over conkers with no ill effects at all.
Vinegar: Mix equal parts white vinegar and water in a spray bottle and spray it directly onto any spiders you see. Vinegar contains acetic acid which burns the spider upon contact..
A corner provides attachment points with some air between them. Imagine a spider building a web in the middle of a blank wall. The web would end up lying flat on the wall, which is not very useful for catching flying insects..
Leaving lights on when it's dark: Just like a bear that is attracted to a flowing river filled with jumping fish, spiders are attracted to bright lights, surrounded by flying insects. Any place that is near an insect-attracting light is prime real estate for spiders.