Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by ysth (7833) on 2007.11.19 2:43 (#59082) Homepage
    Instead of returning javascript:

    document.write("<ul><li><a href=http://www.madmongers.org/>MadMongers</a></li><li><a href=http://yapceurope.org/>YEF - European Conferences and Workshops</a></li><li>Perl Event: <a href=>Windy City Hackathon</a>, December 14-16, Chicago, IL</li><li class='perlAdserverSelflink'><a href='http://adserver.szabgab.com/'>By Perl AdServer</a></li></ul>");
    you return html:

    <head><title>Perl Community AdServer</title></head><body>
    <ul><li><a href=http://www.madmongers.org/>MadMongers</a></li><li><a href=http://yapceurope.org/>YEF - European Conferences and Workshops</a></li><li>Perl Event: <a href=>Windy City Hackathon</a>, December 14-16, Chicago, IL</li><li class='perlAdserverSelflink'><a href='http://adserver.szabgab.com/'>By Perl AdServer</a></li></ul>
    </body></html>
    and it can be included in an iframe or fetched programmatically and processed however desired. In the latter case, it would be good if there were a way to pass in the originating ip address (assuming you are using that to distinguish country of origin).

    I would like to see this soon so it can be added to perlmonks (where we can't encourage people to have javascript unsafely enabled).

    It sounds like, to bypass ad blockers, you may want to make it available as http://pcas.szabgab.com/pcas/ [szabgab.com] in addition to http://adserver.szabgab.com/ads/ [szabgab.com].

    By the way, the javascript is returned with content-type text/html; is this intended?