To prevent obesity in pet rabbits, it is important to provide a balanced diet that is high in fiber and low in calories. This can be achieved by feeding them a diet that consists mainly of hay, fresh vegetables, and limited amounts of pellets. Additionally, ensure they have plenty of space to exercise and play to help them maintain a healthy weight. Regular veterinary check-ups can also help monitor their weight and overall health.