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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    iframe json security question

    a simple NO YOU CAN'T or a BUY A TEXTBOOK & READ IT will probably answer my query..
    what i want to do is to analyse a load of share bulletin boards, from a webpage on my home pc. i'd hoped to do it by putting the bb page in an iframe and parsing the iframe's innerHTML. but this is barred by javascript.
    i'm a bit cheesed off having found that out only after doing the hard work of writing the parsing-code.. (i had pasted a sample bulletin board source code into the iframe, so it was all local..)
    but i read something about JSON.. which might outflank the security. i'd like to know: can i get an example of how this might be done? how much of a learning curve is JSON. can i fix it up on this machine?
    thanks for any help..

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,928
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    http://www.openajax.org/whitepapers/...20Security.php

    http://www.zackgrossbart.com/hackito/jsonp-sop/

    Read it carefully, and note the security issues involved. And as it says, this is university level code.

    Are you sure that there are no copyright issues involved? If there are you may well attract a swarm of expensive lawyers.


    It is your responsibility to die() if necessary….. - PHP Manual
    Last edited by Philip M; 02-06-2011 at 07:56 PM.

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks. i'll give it some thought, though it looks a little too complex. i'm up to my intellectual limit as it is..

    i can't see it being illegal: my snooping isn't going to be rebroadcast. i'm trying to rework the idea by pasting the bulletin board source one at a time into a textarea.. i was hoping to fire a load of urls into the processor to analyse bulletin boards relating to different companies..


  •  

    Tags for this Thread

    Posting Permissions

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