There are several ways to prevent rats from taking up residence under your iFrame. Some methods to consider include:
Remove food sources: Rats are attracted to food, so make sure to keep outdoor areas clean and free of crumbs or other food debris. Keep rubbish containers sealed and dispose of waste regularly.