A device for feeding animals, includes a frame with a feed holder for a feeding site for an animal. The frame is provided with a restricting device for restricting in at least two opposite lateral directions a dwelling space for an animal using the feeding site. The device is also provided with a distancing mechanism for keeping animals located outside the dwelling space at a distance from the restricting device.