1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Javascript interacting with I-Frames

Discussion in 'HTML & JavaScript' started by n3xus, May 18, 2009.

  1. n3xus

    n3xus Junior Member

    Joined:
    Apr 19, 2009
    Messages:
    121
    Likes Received:
    31
    I've been searching around this site as well as google, but I can only seem to find hints here and there.

    I'm looking for a definitive answer to the question: can javascript or AJAX be used to enter data and submit it within an iframe?

    In my mind it seems too good to be true, but I was just curious if anyone knows about this more.
     
  2. n3xus

    n3xus Junior Member

    Joined:
    Apr 19, 2009
    Messages:
    121
    Likes Received:
    31
    mmm ah I gotcha. Haha I didn't even think about it in that light, but thanks. That saves me some time searching for an answer lol.
     
  3. agentcash

    agentcash Newbie

    Joined:
    Jan 10, 2009
    Messages:
    11
    Likes Received:
    4

    That's not correct.
     
  4. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    When you iframe on a site the IP address sent is that of the client...NOT the server. So the IP address is not an issue as you say. If you have 500 unique users filling in the iframed offer you will have 500 different IPs.

    The referrer is where you would run into an issue since it would show as the parent page but you can work around that using javascript like cparedirector does and have a WH page to fake the referrer to.

    CURL is what will use the IP address of the server.
     
  5. betster77

    betster77 Regular Member

    Joined:
    Mar 21, 2009
    Messages:
    246
    Likes Received:
    237
    agentcash and zone69 are correct, it is the user's ip that is sent in the request. the problem is you can not access anything between the user and the iframe for security purposes (just like you cannot access the user's other tabs in firefox). that is the whole premise of adsense and why you can read the click urls to fake the click under the user, only they have access to it.
     
  6. Rendias

    Rendias Registered Member

    Joined:
    May 14, 2009
    Messages:
    91
    Likes Received:
    34
    You have to run the links inside the iframe under multiple proxies to make sure IP is unique.
     
  7. betster77

    betster77 Regular Member

    Joined:
    Mar 21, 2009
    Messages:
    246
    Likes Received:
    237
    that doesn't make much sense bro... why go through the trouble of the iframe then? in that case just collect user's data and submit it to all your offers through a proxy with a bot.. :rolleyes: the point is matching the users actual IP with the submit... If your offer accepts "GET" form requests you could pull it off, otherwise nope.
     
    Last edited: May 22, 2009
  8. chuckz

    chuckz Newbie

    Joined:
    Jul 15, 2008
    Messages:
    31
    Likes Received:
    5
    You cannot access the interior of any iframe which is accessing a page on a different host. Trying to do so causes security violations.
     
  9. betster77

    betster77 Regular Member

    Joined:
    Mar 21, 2009
    Messages:
    246
    Likes Received:
    237
    Thank you for clearing that up my firiend. Obviously my previous posts didn't address that fact :confused: