One way to keep spiders from attacking is to repel them.
Find some spider repellent and spread it around the farmhouse.
Unlike normal walkthroughs, in Nice Game Hints you can select just the puzzle you want hints for. Here are listed the puzzles for "Repelling spiders" in Don't Escape: 4 Days to Survive. The guide you choose only contains information about that puzzle, reducing possible spoilers for other puzzles.