In the story, there are several people (two or four) who enter a cave. In the cave, there is a spider the size of a chair, and the spider cut off the head of the person who was caught from his body.
Then the head of the severed person merged with the spider, so that the spider had a human head, and chased the person who entered the cave. The number of spiders with human heads was hundreds.
Then the person being chased ran until he came out of the cave, and closed the cave with a kind of spell of words. When the cave is closed, all the human-headed spiders are sucked into the cave and seem to disappear.
This film was screened around 2006 and below, and played on Asian themes. I don't know if it was made in China, Hong Kong, Taiwan, or elsewhere.