late 14c., hampren "to surround, imprison, confine," also "to pack in a container," of unknown origin, possibly from hamper (n.1), or somehow connected to Middle English hamelian "to maim." Related: Hampered; hampering.
"large basket," early 14c., contraction of Anglo-French hanaper (Anglo-Latin hanepario), from Old French hanepier "case for holding a large goblet or cup;" in medical use "skull," also "helmet; armored leather cap," from hanap "goblet," from Frankish or some other Germanic source (cf. Old Saxon hnapp "cup, bowl;" Old High German hnapf, German Napf, Old English hnæpp). The word also meant (15c.) "the department of Chancery into which fees were paid for sealing and enrolling charters, etc." The first -a- may be a French attempt to render Germanic hn- into an acceptable Romanic form.
1835, "things important for a ship but in the way at certain times" (Klein's definition), from French hamper "to impede." Hence top hamper, originally "upper masts, spars, rigging, etc. of a sailing ship."