From 68a80dc4f9a749e43afef16cb05c086c6cb644d1 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 14 Feb 2024 15:21:12 -0700 Subject: [PATCH] Run local domain checks before doing queries --- endpoints/net.contactspam.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/endpoints/net.contactspam.php b/endpoints/net.contactspam.php index 96ff437..a50b6fe 100644 --- a/endpoints/net.contactspam.php +++ b/endpoints/net.contactspam.php @@ -177,6 +177,9 @@ try { exitWithJson(["status" => "OK", "clean" => false, "filter" => "stopforumspam_domains", "hit" => $word, "message" => "Your message contains a domain ($d) that has been linked to recent spam. Message not sent."]); } } + } + // do online searches only after we've checked the local lists + foreach ($domainlist as $d) { // check online blacklists foreach ($lists as $blacklist) { $url = "$d.$blacklist";