On 16/12/10 15:03, Optimum Wireless Services wrote:
Hello.
I don't know if this is the right place to ask about this issue, if is
not then, please apologize.
I have a small WISP in my town and I would like to offer free internet
service at coffee shops, restaurant, and other public places but, this
free service will have its limitations: All pages would have an
advertisement or promotion on top just like NetZero used to do in the
past. I think this is done with frameset but, don't know how to force
this for all the pages.
I would like to do this with php/mysql and if the user tries to remove
the frame then maybe redirect them to pay per hour/day etc service.
I have a linux gateway that runs squid and would like certain ip
addresses (free ones) to view pages with this promo on top or even
have pop ups from time to time whichever is easier.
I've had people tell me it can be done with squid.
Can this be done? If so, can you please provide any suggestions?
I seriously suggest you try your hardest to avoid altering the actual
content. Altering content directly gets you straight into a minefield of
legal issues with the copyright owners of said web content.
Splash pages are accepted by most clients in this type of situation.
Which periodically cut the viewing process into a full page of advert
with a continue link back to the previous request. Look into captive
portals for how to do this in an easy way with any squid-2.6 or later:
http://wiki.squid-cache.org/ConfigExamples/Portal/Splash
Doing anything with the body in Squid requires a separate ICAP service
or eCAP plugin written specifically to perform the act. This requires
squid-3.0 pr later (the newer the better).
You might get away with the frame trick since the original content is
still available unchanged. Though browser support for frames is a very
confused area with frame, iframe, script, embed and object all doing the
same role depending on the browser if it supports sub-frames at all.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.9
Beta testers wanted for 3.2.0.3