szepeviktor / waf4wordpress

WAF for WordPress 🔥 with 60+ security checks and weekly updates
https://github.com/szepeviktor/wordpress-website-lifecycle
MIT License
124 stars 25 forks source link

From wp-fail2ban-redux - check commenters #6

Open szepeviktor opened 6 years ago

szepeviktor commented 6 years ago
add_action( 'comment_post', array( $this, 'comment_spam' ), 10, 2 );
add_action( 'wp_set_comment_status', array( $this, 'comment_spam' ), 10, 2 );
add_filter( 'xmlrpc_pingback_error', array( $this, 'xmlrpc_pingback_error' ), 1 );

https://github.com/thebrandonallen/wp-fail2ban-redux/blob/develop/wp-fail2ban-redux/classes/class-wp-fail2ban-redux.php#L99

szepeviktor commented 5 years ago

@lkraav Could you help me by providing comment traffic logs for me?

My clients have no websites with comment activity.

lkraav commented 5 years ago

Wdym "comment traffic logs"?

szepeviktor commented 5 years ago

Something like json_encode($_POST and $_SERVER[HTTP_*] and IP and UA)

https://github.com/szepeviktor/waf4wordpress/blob/master/http-analyzer/waf4wordpress-http-analyzer.php#L278-L307