$max_age_seconds) { download_blocklist($blocklist_path); return true; } return false; } function filter_disposable_emails($emails, $blocklist_path = null) { $valid_emails = array(); foreach ($emails as $email) { if (!is_disposable_email($email, $blocklist_path)) { $valid_emails[] = $email; } } return $valid_emails; } function get_email_domain($email) { $email_parts = explode('@', trim($email)); return count($email_parts) === 2 ? strtolower($email_parts[1]) : ''; } function validate_email_form($email) { // Blocklist aktualisieren falls nötig (jede Stunde) $updated = update_blocklist_if_needed(); if (is_disposable_email($email)) { // echo "Wegwerfadresse\n"; return false; } // echo "Adresse gültig\n"; return true; } // Zum Testen // validate_email_form("roland.keck@webxxx.de"); ?>