Littlest Pet Shop codes come inside the physical LPS video games, available across DS, PSP, Xbox, and Wii.
Specifically, they are found in the Littlest Pet Shop titles for those platforms, and the games themselves are stocked at major retailers. Walmart is the one most often cited as carrying them.
That is the only legitimate source. Codes were tied to the physical product rather than distributed online, which is why any site listing them is offering something expired or obtained improperly.