Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created March 28, 2023 20:16
Show Gist options
  • Save ideadude/f64ce8aaa3b0a0579034082144cc2220 to your computer and use it in GitHub Desktop.
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.
<?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
@kimwhite
Copy link

This recipe can be found on this post: https://www.paidmembershipspro.com/how-to-stop-spam/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment