Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm sure some of you have been on free wifi networks where they inject a small ad onto every page you visit. Basically, how do they do that?

How does one append html to every request that passes through a specific router?

I assume the router itself will have to make the actual request to get the content to then be able to append the html. This would be costly on the server side. I'm curious if there's another way to do it via caching or some other method.

share|improve this question

1 Answer 1

This is usually handled with a transparent proxy that re-writes the server's response.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.