Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Servering ADs using JS

    Hey Guy's

    I have a question for you on a setup i am trying to do.

    I would like to be able to run ads on my site,but these ads will be the users ads.
    What i need is a ad boxs within the users account,there they can paste there ad-networks banner code JS.

    The big question is how hard do you think this will be to do,as the site has to be protected from anyone trying to ad JS that's not a banner code?

    Cheers

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    That is not possible using Javascript. You must use server-side coding.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •