Enforce rules for popups