Created
March 28, 2023 20:16
-
-
Save ideadude/f64ce8aaa3b0a0579034082144cc2220 to your computer and use it in GitHub Desktop.
Tighten the PMPro Spam Protection so users/IPs with failed payments are locked out more quickly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add these 2 lines to your wp-config.php | |
// This will lock IPs that fail checkout 5 times within 30 minutes. | |
// The default is 10 failures every 15 minutes (900 seconds). | |
define( 'PMPRO_SPAM_ACTION_NUM_LIMIT', 5 ); | |
define( 'PMPRO_SPAM_ACTION_TIME_LIMIT', 1800 ); // in seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This recipe can be found on this post: https://www.paidmembershipspro.com/how-to-stop-spam/