The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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?