To prevent from such silly doings, Firefox has built-in option which will warn users when the page is re-directed or tries to re-load. To activate this 3 step feature,
STEP 1: Goto Firefox > Options
STEP 2: Goto to Advanced Tab
STEP 3: In General Tab, Under Accessibility, tick third option if it is un-ticked and click on OK.
Now, when ever the pages tries to re-load or re-direct, you get a prompt like this.