Need help with Free hosting

They have: 5,633 posts

Joined: Jan 1970

I'm considering adding free webhosting to my list of services, but I'm having a bit of trouble finding a way to insert banner ads into my customers' pages. One of my IRC buddies told me that that was SSI's responsibility. That's as much as he knew about the subject.

So, my question is, how can I add banner ads to pages, without directly altering the page's HTML code?

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

One method I saw was using frames.

A banner would be displayed in a frame in the top or bottom part of the screen while the actual site loaded in another frame. This way, you don't have to alter anything of your customers'.

No idea about the details of how to go about doing that though.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

You need to have control of the server to automate it. Do you have access?

You *cannot* avoid directly altering the page's code. Forcing frames is altering code (and is escapable).

vexcom's picture

He has: 21 posts

Joined: Jul 2004

You can configure apache to automatically include a footer or header into every html page on the server, but you need to have root access.


How can I attach a footer to my documents without using SSI?

You can make arbitrary changes to static documents by configuring an Action which launches a CGI script. The CGI is then responsible for setting a content-type and delivering the requested document (the location of which is passed in the PATH_TRANSLATED environment variable), along with whatever footer is needed.

Busy sites may not want to run a CGI script on every request, and should consider using an Apache module to add the footer. There are several third party modules available through the Apache Module Registry which will add footers to documents. These include mod_trailer, PHP (php3_auto_append_file), mod_layout, and mod_perl (Apache::Sandwich).

Thats from the FAQ
[URL=http://httpd.apache.org/docs/misc/FAQ.html ]Apache FAQ [/URL]

- Wesley E. Warren, CEO - Vexcom Advanced Systems Development
Realty-SEO Real Estate Marketing
Freelance Graphic and Web Designers Directory - Join Free
"All limitations are self imposed" ~ Malaclypse The Younger

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.