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

Hidden Form Submitter

Discussion in 'General Programming Chat' started by eMonetize, May 30, 2016.

  1. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81
    I need to do the follow and there is probably someone here that hopefully knows the best way to make happen.

    I want to have a main page that anyone can visit with a hidden form, I'm assuming using hidden Iframe.

    So when a visitor comes to the main page, the hidden form is submitted and when the target server that the form info is being posted to, reads the IP of the connection, they will get the IP of the visitor of the main page and not the IP of the server the form is hosted on.

    The hidden form will use an API to submit the info, rather than form action="target-server"

    I know this can be done, as I know several people that have been doing it for a while.

    Thoughts?

    I'm more than happy to compensate someone that can tell me how to do and it works.
     
    Last edited: May 30, 2016
  2. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    Not sure to understand what you want to do, are you trying to log the IP of the people visiting your page right?
     
  3. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81
    I want the target server that the data is being posted to, to think all the submissions are coming from different visitors of the main page. Rather than from one single IP.

    I need to submit data into an account that I have. I can do this manually, but then my volume is limited, unless I wait an get additional approvals, which take too long. If I could do the above and make it look like its all coming from different users, then I wouldn't have the volume bottleneck.
     
    Last edited: May 30, 2016
  4. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    Oh ok so you want something like that
    Code:
    <form action="URL" method="POST" id="form">
      <input type="hidden" name="1" value="1">
      <input type="hidden" name="2" value="2">
    </form>
    <script type="text/javascript">
        document.getElementById("form").submit();
    </script>
    
    This give you an form that is not visible (just change the URL and the input, make sure the input type is "hidden") and the javascript code at the end will submit it automatically.
     
  5. BlogPro

    BlogPro Power Member

    Joined:
    Apr 23, 2012
    Messages:
    521
    Likes Received:
    451
    So when your hidden form is submitted, what data other than the IP is sent to the target API?
     
  6. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81
    There will be data in a file (one record per line) and I will need for one record to be retrieved and entered into the form, each time a new visitor comes to the page and then that record is removed from the file so it can't be submitted again. I have someone that can program everything for me. It's the IP part that my guy isn't 100% sure on how to make work.
     
  7. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81

    Just doing the above will want to return a thank you page, which is why I'm thinking to use API, as I assume that can be controlled.
     
  8. BlogPro

    BlogPro Power Member

    Joined:
    Apr 23, 2012
    Messages:
    521
    Likes Received:
    451
    APIs don't record IPs unless they are explicitly submitted to them.

    An API submission is a backend process and does not need a user IP.

    If you want the target server to know the IP, PM me the api and I'll see what can be done for that.
     
  9. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81
    I see no way to PM you.

    There is no option to Start a conversation
     
  10. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    970
    Likes Received:
    678
    Occupation:
    Web/Bot Developer

    Des_cartes' solution should work fine. The "thank you" page will be contained in the iframe and not visible to the user.
     
  11. rhinocat

    rhinocat Junior Member

    Joined:
    Sep 12, 2013
    Messages:
    172
    Likes Received:
    21
    looks like CSRF to me..
    good luck for finding a solution OP..
     
  12. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81
    No nothing like that.
     
  13. eMonetize

    eMonetize Regular Member

    Joined:
    Oct 17, 2015
    Messages:
    202
    Likes Received:
    81
    i'm trying it
     
    Last edited: May 30, 2016