To prevent obesity in pet rabbits, it is important to provide a balanced diet consisting of high-quality hay, fresh vegetables, and a limited amount of pellets. Avoid overfeeding treats and monitor their food intake to prevent excessive weight gain. Additionally, ensure that your rabbit gets enough exercise by providing ample space for them to move around and engage in physical activity. Regular veterinary check-ups can also help in monitoring your rabbit's weight and overall health to prevent obesity.