Spiders are common insects that usually do not attack humans. Spiders will not specifically attack sleeping people.
Some spiders may appear late at night, but they are mainly looking for food rather than attacking humans. In addition, most spiders are not harmful to humans, and only a few spider bites will cause certain effects on humans. To prevent spiders from entering the bedroom, you can keep the interior clean, seal doors and windows, and use anti-spider sprays and other tools for prevention and control. If you find a spider in your bedroom, use a vacuum cleaner or mop to clean it out. Do not touch it directly with your hands.