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