Jump to content

seanenriquez

Approved members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by seanenriquez

  1. What does document.context actually do? I don't see a single piece of information it's purpose, I think it's a way for the ads to be pulled from a cache, but i really don' know.

    The reason i'm asking is because after a few page loads, it's being appended into some of my ad's urls and essentially dropping the part of the ad script that actually embeds the iframe/ad.

    What's weird is that this problem doesn't occur on the first few page loads, it's almost like document.context doesn't exist, even though i can see it on the window when the page loads. But after 3 refreshes the page accepts the variable into the urls.

     

    Once this script:

       var m3_u = (location.protocol=='https:'?'https://example.org/revive/www/delivery/ajs.php':'http://example.org/revive/www/delivery/ajs.php');
       var m3_r = Math.floor(Math.random()*99999999999);
       if (!document.MAX_used) document.MAX_used = ',';
       document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
       document.write ("?zoneid=5");
       document.write ('&amp;cb=' + m3_r);
       if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
       document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
       document.write ("&amp;loc=" + escape(window.location));
       if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
       if (document.context) document.write ("&context=" + escape(document.context));
       if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
       document.write ("'><\/scr"+"ipt>");

     

    actually accepts document.context as a defined it goes from this url: https://example.org/revive/www/delivery/ajs.php?zoneid=3&cb=81876370635&charset=UTF-8&loc=https%3A//example.org/path/example_36131212/&referer=https%3A//example.org/

     

    which outputs this:

    var OX_c8920c88 = '';
    OX_c8920c88 += "<"+"div id=\"rcjsload_6aa9f0\"><"+"/div>\n";
    OX_c8920c88 += "<"+"script type=\"text/javascript\">\n";
    OX_c8920c88 += "(function() {\n";
    OX_c8920c88 += "var rcel = document.createElement(\"script\");\n";
    OX_c8920c88 += "rcel.id = \'rc_\' + Math.floor(Math.random() * 1000);\n";
    OX_c8920c88 += "rcel.type = \'text/javascript\';\n";
    OX_c8920c88 += "rcel.src = \"https://trends.revcontent.com/serve.js.php?w=1926&t=\"+rcel.id+\"&c=\"+(new Date()).getTime()+\"&width=\"+(window.outerWidth || document.documentElement.clientWidth);\n";
    OX_c8920c88 += "rcel.async = true;\n";
    OX_c8920c88 += "var rcds = document.getElementById(\"rcjsload_6aa9f0\"); rcds.appendChild(rcel);\n";
    OX_c8920c88 += "})();\n";
    OX_c8920c88 += "<"+"/script><"+"div id=\'beacon_8d46a0322a\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'https://example.org/revive/www/delivery/lg.php?bannerid=10&amp;campaignid=10&amp;zoneid=3&amp;loc=https%3A%2F%2F2Fexample.org%2Fpath%2example_36131212%2F&amp;referer=https%3A%2F%2Fexample.org%2F&amp;cb=8d46a0322a\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\' /><"+"/div><"+"script type=\'text/javascript\'>document.context=\'YTo0fA==\'; <"+"/script>\n";
    document.write(OX_c8920c88);

     

     

    To this url: https://example.org/revive/www/delivery/ajs.php?zoneid=3&cb=81876370635&charset=UTF-8&loc=https%3A//example.org/path/example_36131212/&referer=https%3A//example.org/&context=YTo0fA%3D%3D"

     

    which outputs this:

    var OX_c8920c88 = '';

    OX_c8920c88 += "<"+"/script><"+"div id=\'beacon_8d46a0322a\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'https://example.org/revive/www/delivery/lg.php?bannerid=10&amp;campaignid=10&amp;zoneid=3&amp;loc=https%3A%2F%2F2Fexample.org%2Fpath%2example_36131212%2F&amp;referer=https%3A%2F%2Fexample.org%2F&amp;cb=8d46a0322a\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\' /><"+"/div><"+"script type=\'text/javascript\'>document.context=\'YTo0fA==\'; <"+"/script>\n"; document.write(OX_c8920c88);

    Notice it's missing the whole IIFE that's creating the actual ad.

     

     

    Is it something important that i need to include in the URLS? Or is it possible to just not append it to the ad urls?

×
×
  • Create New...