The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
How to use Submission Pre-Parser to disallow submissions from a specific IP address? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: How to use Submission Pre-Parser to disallow submissions from a specific IP address? (/showthread.php?tid=2462) |
How to use Submission Pre-Parser to disallow submissions from a specific IP address? - dethompsOWU - Jun 17th, 2013 I'm already using the Submission Pre-Parser module to do the bad_email anti-spam technique: if (!empty($_POST["bad_email"])) $_POST["form_tools_ignore_submission"] = true; Now I'd like to add something to that to <also> ignore incoming submissions from a particular IP address that has proven problematic in getting through the bad_email anti-spam technique. But, since IP address isn't recorded as a regular field in the database (right?), I'm not sure how to achieve that. Any ideas? Thanks in advance for your help, Doug Thompson Manager of Web and Electronic Communication Ohio Wesleyan University RE: How to use Submission Pre-Parser to disallow submissions from a specific IP address? - Joe - Jun 18th, 2013 Hi Doug, Sorry for hear about the issues with the spammer. Rather than use the submission pre-parser you might want to consider our IP Security Check module instead: http://modules.formtools.org/ip_security_check/ This will allow you to blacklist or whitelist specific IP addresses. Alternatively you could also add some rules to your firewall to ban the specific IP address. Cheers, Joe RE: How to use Submission Pre-Parser to disallow submissions from a specific IP address? - dethompsOWU - Jun 19th, 2013 At first I was all excited that this might be the solution, but now that I've tried it (and done a little reading about it), I'm thinking it <isn't> what I need. From what I can tell, the IP Security Check module is for whitelisting/blacklisting FormTools <user accounts>, not for policing regular incoming form submissions and disallowing them if they come from a particular IP address (which is what I'm dealing with with this spammer who has somehow figured out a way around the standard hidden "bad_email" form anti-spam functionality). So, I need a way to look at incoming form submissions, and if one comes from the IP address of the spammer, I need to disallow that submission from being processed. That's why I was thinking the pre-parser thing might be the way to go. Thoughts? |