Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8030449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:46:22+00:00 2026-06-05T00:46:22+00:00

I am trying to develop a back-end Ad Checking application in PHP. We have

  • 0

I am trying to develop a back-end Ad Checking application in PHP. We have lots of places where ads can be shown and almost all of them has its unique requirements (they are shown inside games, that is why everyone is different in size, weight, format, etc.). Since this can cause lots of confusions on campaigns targeting different games (with the agencies sending us ads with the wrong formats), we need to check every ad to make sure it works as expected.

The application works fine if our clients send us the Ad File to check. But most of the time they send Adserver tags, so they can keep track of the results, and those tags generally are javascript and iframe tags.

The problem is how to securelly allow the insertion of javascript and iframe code, and render that to the page on the postback page (for visual checking), on all browsers, without risking XSS problems?

At the moment, I’ve managed to post the code and print to the postback page on all browsers, but Chrome, because of the security measures. But since I’m gonna have to tackle that issue anyway, how can I make it work on all browsers and still be sure the application is safe?

Thanks.
Decio

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:46:23+00:00Added an answer on June 5, 2026 at 12:46 am

    If you include 3rd party javascript code, you are always risking XSS. Let’s say, you’re testing the code from ad provider:

    <script src="http://some3rdPartySite.com/script.js"></script>
    
    1. Script can be altered to be displayed and to cause different results on target domain and on all other pages. That is, you can see how it wants to be showed to you, but you can’t be sure that it will be the same in some of your customer’s games.
    2. Ad provider can change the script on it’s server at any moment, possibly after your tests.

    If you do not trust your ad vendors, I suggest to let them choose image + URL or iframe URL + dimensions. You can do “bad stuff” with Iframe too (like frame-busting thus redirecting from your customer page), but you still must obey cross-domain policy. This is not the case if you let javascript code to be executed.

    You could also provide your own analytics for ad vendors to fill their needs.

    Anyway, for testing javascript results you could use Selenium drivers with any browser: http://seleniumhq.org/. It let’s you to load any page, execute javascript code and get results. In this way you could load your javascript code, search DOM for nodes and check their dimensions etc.

    Also, you can look at sahi: http://sahi.co.in/w/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been tasked with taking an Access 97 application and moving the back-end
I'm trying to develop a Flex Mobile / PHP application, and I'm running into
Im trying to develop my first ASP.NET MVC web app and have run into
I am trying to develop a REST style application with Spring but the url
I'm trying to develop a cross-platform application using C++ with boost. I typically program
I'm trying to develop an online application where the user writes some text and
We are trying to develop an application that send messages to a service, but
I'm a mac novice and trying to get a developer setup to develop php
I’m trying to develop a Spring 3 MVC application using the Springsource Tool Suite/Eclipse
Trying to develop using MVVM: I have this Csla.PropertyStatus control that is created in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.