This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Limited submission per user - time limit


  1. dhous
    Member

    Hi, is it possible to time-limit the submissions? Now it seems to be limited by IP. Is it possible to limit the blockage by time? Like IP ban for 7 days/6 months or so?

    Posted 14 years ago #
  2. dhous
    Member

    Hi, I have found a link http://www.appnitro.com/forums/topic/limit-submissions-per-user-for-a-limited-time?replies=2 but I do not know how to change it for 180 days instead. Could someone help me?

    Posted 14 years ago #
  3. yuniar

    To confirm, you would like to limit each IP address to be able submitting into the form once every 180 days only? Is that correct?


    MachForm Founder

    Posted 14 years ago #
  4. dhous
    Member

    I would rather combine IP and email with 180 days limit. Or is there any better approach to limit repeated submissions? I have found

    <?php
    
    function GetVolumeLabel($drive) {
      // Try to grab the volume name
      if (preg_match('#Volume Serial Number is (.*)\n#i', shell_exec('dir '.$drive.':'), $m)) {
        $volname = ' ('.$m[1].')';
      } else {
        $volname = '';
      }
    return $volname;
    }
    
    $serial =  str_replace("(","",str_replace(")","",GetVolumeLabel("c")));
    
    echo $serial;
    
    ?>

    that would surely help, but it is now allowed by my provider. Finally how do you use IP limit? As some ISP's use IP address pooling it might be better to let the last part of the IP change.

    Posted 14 years ago #
  5. dhous
    Member

    And yes, I confirm, that I would like to limit each IP address to be able submitting into the form once every 180 days only? Could you help me?

    Posted 14 years ago #

RSS feed for this topic

Reply