The best way to avoid getting scammed is to never send money to anyone you don't know. Never invest in hyip sites and never trust online investment schemes. Once you send your money to someone, you make yourself vulnerable to getting scammed.
You can do that by joining the earning sites that seems very reliable and reputable.
I always ensure to go for sites that have been extensively reviewed and are known to be paying.