Top Of the Page Advertising?

Discussion in 'General' started by Hotwire, Apr 12, 2007.

  1. Hotwire

    Hotwire New Member

    Is it possibel to have a script setup that will display a full width banner across the top of a customers webpage. I would like to impliment this feature for select hosting plans, mainly the free, and affiliate plans I offer.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I'm not sure, but maybe you can pipe the pages through some kind of proxy and then add your ads.
     
  3. jnsc

    jnsc rotaredoM Moderator

    I once saw an apache module who was doing this, but this was more than 5 years ago, and I don't recall the name.
     
  4. edge

    edge Active Member Moderator

    I tested this some time ago with Apache's mod_rewrite.

    Not sure if this is the code I used (I can not access my test server at the momen)

    Code:
    <IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase / 
    RewriteCond %{REQUEST_FILENAME}!add.php 
    RewriteRule ^(.*) /add.php 
    </IfModule> 
    You will need to code "add.php" to handle the banners.
     
  5. fisherofer

    fisherofer Member

    Please check the code
     

Share This Page