Starting with the word pain according to the dictionary:
physical suffering or distress, as due to injury, illness, etc.
a distressing sensation in a particular part of the body: a back pain.
mental or emotional suffering or torment
1250–1300; Middle English peine punishment, torture, pain < Old French < Latin poena penalty, pain < Greek poinḗ penalty
1–3. torture, misery, torment.
Continuing with the word web according to the dictionary:
something formed by or as if by weaving or interweaving.
a thin, silken material spun by spiders and the larvae of some insects
an intricate set or pattern of circumstances, facts, etc.verb (used with object)
to cover with or as if with a web; envelop.
to ensnare or entrap.
before 900; Middle English (noun), Old English; cognate with Dutch, Low German webbe, Old Norse vefr; akin to weave
5. network, tissue, tangle, maze.