predicative adverb; impersonal construction (with dative of person)
Analysis. не (neg.) + льзя, where льзя is obsolete/archaic form of можно (can). The phrase originally meant 'it is not possible' and evolved to express prohibition.
Etymology. From Old Russian льзя (to be useful, to be permitted), related to Slavic roots meaning 'to be profitable' or 'to avail'. The negative не- (not) fused with it. Cognate with Polish można (can, it is possible), Ukrainian можна.
Dictionary entry by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version