Refactored referrer filtering to go before HTML output instead of before redirect
Refactored referrer filtering to go before HTML output instead of before redirect

Open343/elefant,jbroadway/elefant,twheel/elefant,jbroadway/elefant,AxorB/elefant,evan70/elefant,Open343/elefant,evan70/elefant,AxorB/elefant,jbroadway/elefant,jbroadway/elefant,AxorB/elefant,evan70/elefant,Open343/elefant,twheel/elefant,R-J/elefant,R-J/elefant,R-J/elefant,twheel/elefant