foreach ($comments as $comment) {
$batch_processed_ids[] = $comment->comment_ID;
$should_spam = false;
$reasons = array();
$spam_score = 0;
$filter_strength = isset($settings['filter_strength']) ? $settings['filter_strength'] : 50;
// DEBUG: Always log what we're checking
if ($this->get_debug_logging()) {
$this->log_action("DEBUG: Processing comment ID {$comment->comment_ID}");
$this->log_action("DEBUG: Author: '{$comment->comment_author}', Email: '{$comment->comment_author_email}'");
$this->log_action("DEBUG: Filter strength: {$filter_strength}");
}
// SIMPLIFIED DETECTION - Only use stable, tested methods
// Check for banned email domains (simple and reliable)
$email_lower = strtolower(trim($comment->comment_author_email));
if (strpos($email_lower, '@yahoo.com') !== false || strpos($email_lower, '@ymail.com') !== false) {
$spam_score += 80;
$reasons[] = 'Banned email domain (yahoo.com/ymail.com)';
if ($this->get_debug_logging()) {
$this->log_action("DEBUG: FOUND banned email domain: {$comment->comment_author_email}");
}
}
// Check for suspicious email patterns (numbers)
if (preg_match('/\d{3,}/', $email_lower)) {
$spam_score += 45;
$reasons[] = 'Suspicious email pattern (numbers)';
if ($this->
Warning: Cannot modify header information - headers already sent by (output started at /home/techreader/public_html/techreader.one/wp-content/plugins/tr-spam-queue-processor/includes/class-tr-detector.php:1) in /home/techreader/public_html/techreader.one/wp-includes/sitemaps/class-wp-sitemaps-renderer.php on line 126
https://techreader.one/wp-sitemap-posts-post-1.xmlhttps://techreader.one/wp-sitemap-posts-page-1.xmlhttps://techreader.one/wp-sitemap-taxonomies-category-1.xmlhttps://techreader.one/wp-sitemap-taxonomies-post_tag-1.xmlhttps://techreader.one/wp-sitemap-users-1.xml