If i buy a serial of of someone online is there a way to make sure its not

A illegal keygen key >:(

Only buy from avast, a affiliate or distributor.
Never buy it from “just a person”.