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
Started 14 years ago by dhous | 5 posts |
-
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 # -
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 # -
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 # -
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 # -
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 #
Reply
You must log in to post.