samedi 27 octobre 2018

Redirect from server side vs client side set location

Some online advertising agent site like Outbrain and Taboola, instead redirect to advertiser site(target site) from server side return simple HTML to the browser and by script change location, Why do this, What pros this vs redirect from the server?

<html>
    <body onload="document.location.replace('http://blog.allstate.com')">
        <form method="get" action="http://blog.allstate.com">
            <input id="cid" name="cid" type="hidden" value="c"/>
        </form>
    </body>
</html>

I get this html via fiddler!




Aucun commentaire:

Enregistrer un commentaire