1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Serving ads via a .js file safe?

Discussion in 'JavaScript' started by Reldin, May 2, 2009.

  1. #1
    I've been running into conflicting answers to this wherever I search. Is displaying banner ads on a website through the use of a .js file a potential security risk?

    For example, to create a default ad for remnants, ValueClick recommends to create a .js file with the ad code from a secondary ad network in it. I assume it's safe practice if they recommend it, but should any additional security steps be taken? I only ask because my website was suspended once after a phishing attack that seemingly occurred through a simple javascript visitor poll, resulting in fraudulent files being slipped onto my server. I'm still not very familiar with java, so I've been extra cautious after that incident.

    Thanks in advance for any advice! :)
     
    Reldin, May 2, 2009 IP