LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2010, 06:30 AM   #1
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Rep: Reputation: 18
How can I serve all pages on a frame?


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. I think this is done with frameset but, don't know how to force this for all the pages.

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.

Can this be done? If so, can you please provide any suggestions?

Thanks in advanced for your help.
 
Old 12-07-2010, 08:50 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
I would suggest browsing the alt.html archives or even subscribing to the newsgroup.

There is a very low noise level in there (some spam but its easy to ignore and only a few trolls and flamers) and most of the regulars seem willing to try to answer an intelligently asked question.

They will ask you to for a link to where they can inspect the page design, so, if you can make something available over the net, it will help.

I do know that, in general, frames are out these days and CSS containers are in. I'm not a web designer--except for my personal sites--but I have dipped in there enough to know that the denizens of alt.html have never liked frames.
 
Old 12-11-2010, 06:06 AM   #3
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Original Poster
Rep: Reputation: 18
Thanks for replying.

I just want to force the user to view an advertisement. I don't mind using CSS to accomplish that. I want every user to see that add on every page the user requests from the Internet.

Don't know how to really do this or if it can even be done.

Thanks.
 
Old 12-11-2010, 11:30 AM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
im not sure the specifics but it can i believe be accomplished by a transparent proxy, or some routers can do such a thing
 
Old 12-11-2010, 08:41 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
Quote:
Originally Posted by landysaccount View Post
I don't mind using CSS to accomplish that. I want every user to see that add on every page the user requests from the Internet.
I'm not saying I could make that happen but I know it can be done using containers.

When you visit a blog, the sidebar(s) that most blogs have are "containers" in CSS-ese.

For example, you can make a banner container and put the add in the banner.

About dot com has a good primer on CSS--I say "good" because it works easily from basic to more complicated and doesn't throw everything at you at once.

I would recommend going there and nosing around a bit.

Another good site is HTML Goodies.

W3C Schools is the most thorough, but I found it really overwhelming unless I did pre-homework, kind of like taking Algebra II without taking Algebra I.
 
Old 12-12-2010, 07:43 PM   #6
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by frankbell View Post
I'm not saying I could make that happen but I know it can be done using containers.

When you visit a blog, the sidebar(s) that most blogs have are "containers" in CSS-ese.

For example, you can make a banner container and put the add in the banner.
Yes, I rather use CSS, I think it would be a lot easier to work with but, how would I be able to "rewrite" all pages that passes through our gw? Maybe it can be done with squid or apache? That's where the trick is at:

If an user requests www.google.com, I would like that banner to appear on top and the requested page just below it. This sounds difficult to do since, there should be a script or something that would have to rewrite the requested page html code. Maybe have a "floating" banner?
 
Old 12-12-2010, 07:45 PM   #7
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by frieza View Post
im not sure the specifics but it can i believe be accomplished by a transparent proxy, or some routers can do such a thing
The traffic should definitely pass through a router/gw in order for this to be accomplished. Also, I would like to run a php script that would load ads from mysql table on to a css or frame banner...
 
Old 12-12-2010, 07:51 PM   #8
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Original Poster
Rep: Reputation: 18
Can this may be accomplished with AJAX? I noticed google used to something similar to what I'm trying to do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse squid: only serve pages/files from cache brianmcgee Linux - Server 0 11-24-2008 09:15 AM
Why apache doesn't serve pages when it's running grob115 Linux - General 7 02-25-2007 08:32 PM
apache won't serve pages gvaught Linux - Networking 6 12-08-2004 09:37 PM
Using Squid and Apache in order to better serve pages xbaez Linux - Networking 2 04-07-2004 05:26 PM
Squid Proxy starts, but will not serve pages Kaniaz Linux - Software 5 03-29-2004 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration