$value) { if (is_string($value)) { foreach ($spam_patterns as $pattern) { if (stripos($value, $pattern) !== false) { $is_spam = true; $spam_reason = "Matched pattern: $pattern"; break 2; } } } } // Check honeypot field if (!empty($post_data['website_url'])) { $is_spam = true; $spam_reason = "Honeypot triggered"; } // Check form submission speed (under 2 seconds) if (!empty($post_data['form_loaded_at'])) { $elapsed = (microtime(true) * 1000) - intval($post_data['form_loaded_at']); if ($elapsed < 2000) { $is_spam = true; $spam_reason = "Submitted too fast: {$elapsed}ms"; } } // Rate limit: max 3 submissions per 10 minutes per IP $transient_key = 'mdu_form_rate_' . md5($ip); $count = get_transient($transient_key); if ($count === false) { $count = 0; } $count = intval($count) + 1; set_transient($transient_key, $count, 600); if ($count > 3) { $is_spam = true; $spam_reason = "Rate limited: {$count} submissions in 10 min"; } // Log the submission attempt $log_entry = date('Y-m-d H:i:s') . " | IP: {$ip} | Spam: " . ($is_spam ? 'YES' : 'NO') . " | Reason: {$spam_reason} | Data: " . substr($form_data, 0, 200) . " "; @file_put_contents(sys_get_temp_dir() . '/mdu_form_spam.log', $log_entry, FILE_APPEND); // If spam, return error and stop processing if ($is_spam) { wp_send_json_error(array( 'code' => 403, 'message' => 'Form submission blocked.' ), 403); exit; } } ?>

Future-Proof Your Property with Our Managed Network Solutions

Our Managed Network Solutions deliver a robust, scalable, and secure infrastructure for property managers, service providers, and building owners. Utilize our fiber runs to future-proof your building, reduce clutter, and save on resources.

Future Proof Infrastructure
Future-Proof Infrastructure

Adapt to the evolving tech landscape with our fiber solutions, ensuring high-speed internet and advanced network services.

Space and Resource Efficiency
Space & Resource Efficiency

Minimize the need for extensive cabling with our managed fiber runs, optimizing space and cutting installation costs

Uncompromised Security and Privacy
Uncompromised Security & Privacy

Our network engineers implement stringent practices to secure each network, protecting sensitive data and ensuring resident privacy.

24 hours support
Scalable Solutions for Growth

Our infrastructure effortlessly accommodates growth, ensuring your MDU property stays ahead in the digital age with seamless technology integration.

Network Excellence Through Managed Services

Gain peace of mind with our Managed Network Services, ensuring your property's network is always fast, secure, and reliable. Let us handle the technical complexities. Explore the difference our Managed Network Services can make.