Excuse my ignorance but when are you copying commands from a site you don't trust? If I don't trust a site I don't run anything it suggests to me, copy hijacking or no.
Fortunately, my terminal emulator doesn't run on paste.
The entire newline-inclusive text is pasted into the terminal and nothing is run until I hit Return.
Input: https://pastebin.com/LpDW2r0d
Result: https://streamable.com/94z5oq
But if the site is nefarious it can adjust my copy so that I copy a mailious command rather than the one I verified.