[What Code] HTML Replace

Discussion in 'Programming' started by fattwam, Apr 6, 2011.

  1. #1
    Hey guys,
    I think i would use javascript for this but anyways let me explain.
    I manage proxies, so i want when i users goes though my proxy to view websites i want to be able to replace whenever there is a Google adsence code or basically any type of ad code and replace it with my own. So when it would find the starting of a google code it would be place it with my Xtend media code.

    But i want it to find several different types of ads like google, yahoo, right media, and whatever else is big.

    Any help is appreciated.
    Thanks
     
    fattwam, Apr 6, 2011 IP
  2. fattwam

    fattwam Well-Known Member

    Messages:
    230
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Anyone have any suggestions ?
     
    fattwam, Apr 7, 2011 IP
  3. Jan Novak

    Jan Novak Peon

    Messages:
    121
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Hi.
    Do this on server side. After you read foreign URL, transform it (remove ads and add yours ads) and this modified content serve to user.
     
    Jan Novak, Apr 7, 2011 IP