ServiceNow interview question

How to prevent/identify a page loading/refreshing infinitely?