Forum Moderators: phranque

Message Too Old, No Replies

Automatic ad placement on a server

         

trap17

2:33 pm on Jan 1, 2005 (gmt 0)

10+ Year Member



I want to start a free web hosting company? How can I place my own ads
on my client sites automatically? I do not want them to insert any
code? [There are several examples of hosts which ] put google ads
automatically on their client sites.

[edited by: jdMorgan at 5:26 pm (utc) on Jan. 1, 2005]
[edit reason] Removed specifics per TOS [/edit]

jdMorgan

5:46 pm on Jan 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use a server-side script (PERL or PHP) to put the sites' pages into frames (or even tables) with the ads above, below, or to the sides.

The script will need to insert code on the page at the end of the original <head> section, and at the beginning and end of the original <body> section of the page in order to avoid destroying the page's meta-information, and in order to preserve the validity of the original HTML.

Since you have no guarantee that the original page will be valid HTML, your script will need to be written so that it won't crash if the original page is missing HTML elements such as <head>, </head>, <body>, and </body>.

Whatever method you choose, you'll need to be very careful to avoid interfering with the ad providers' ability to spider and classify the original page, in order to allow them to provide targeted ads.

Jim