Halloween candy alternatives are a good option to replace handing out candy. The problem of accepting candy from strangers has been around a long time. Sixty years ago we were allowed to only trick or treat if someone knew the people, and we would even be told which houses to skip.
The rule we followed was to throw away any unwrapped candy. By unwrapped, I mean from the manufacturer, so if a person took the time to wrap candy it would be discarded. A few years later hospitals began offering free candy X-rays to detect metal embedded in the candy. This helps, but cannot detect toxins.
Many schools now offer trunk or treat, where the parents park in the school yard and hand out candy from behind their vehicles. Some shopping centers have merchants participate in handing out candy. This has some control. But, how do you handle passing by that one, untrusted person without insulting them? And, once that person drops something into a pumpkin or bag, can you identify the item among all of the other candy? Then, there is the sugar high that can follow as the candy is consumed.
Inexpensive toys are a good alternative and make a safer Halloween without eliminating the fun.