It is a pesticide. I find it difficult to make contact with the material inside. Maybe I would make smaller holes (that the child can't get in with his fingers). And for the dog, maybe stick it with double-sided tape so that he can't put it in his mouth. Or go on holiday with dog and baby. For a few days. The product really works, the next day already there are no ants around.