css - Adding watermark to web page - architecture -


i curious adding watermarks web pages, e.g. logo of internet provider. i'm not asking code sample html or css. thinking proxy server add watermark web page user tries visit. how should proxy server behave when user asks https website? there other approaches apart proxy server try?

thanks answers

summary: don't want this.

there's 1 way luckily, , it's ugly, unreliable , insecure. have configure proxy act https terminator intercepts connections made client , create new connection destination site. can modify data before sending client.

however, client expects encrypted connection signed correct certificate. don't have certificate, browsers terminate connection or, if re-sign own certificate, complain invalid certificate. result in huge error messages on every client, that'll problem.

you can avoid installing new self-signed root certificate on client machines valid sites , sign data certificate. clients accept connection , happily display modified sites.

however, have broken chain of trust implied tls , you're solely responsible security between client , destination. when connect bank presence of tls ensures me a) connected real website of bank , b) no 1 can intercept my, example, login details. you've broken both , b, because no longer can trust i'm connected real website intended visit , or malicious third party can intercept , read traffic between me , bank abusing/hacking proxy server.

also, techniques http public key pinning both sites , browsers arming against firewall vendors, av companies , isp's bad ideas this. because that's is, bad idea.

please, please, don't this.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -