To prevent rats from eating dog food, here are a few things you can try: Use a plastic box with a mechanical trap to catch the rats and then release them back to where they came from. This is a safe, humane, and effective way to remove rats from your dog's food without harming them. Use plastic or wooden boxes to store dog food to prevent rats from getting to it. You can also put sealing tape on the lid of the box to prevent mice from crawling inside. Store dog food in the refrigerator. This effectively prevents rats from coming into contact with the dog food.
Add some chili powder or chili oil to the dog food. Many rats are sensitive to spicy flavors, so this may make them reluctant to deal with dog food. Place some mints around the dog's food. Many rats are sensitive to the smell of mint, so this may make them reluctant to deal with dog food. Sprinkle some spices such as cinnamon or Croatian pepper around the dog's food. These spices may cause rats to avoid dog food.