I doubt it's harmful, not sure if they can carry parasites though. You can DIY fruit fly traps. Plastic, foam, jar, whatever and put some apple cider vinegar in the bottom. Cover the top with sandwich bag or plastic wrap. Poke holes in the top. They are good on getting in back can't really get out. Can place outside, around the viv.