瀏覽代碼

Stricter Phishing domain extraction

SukkaW 3 年之前
父節點
當前提交
57543c9d48
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Build/build-phishing-domainset.js

+ 3 - 1
Build/build-phishing-domainset.js

@@ -66,9 +66,11 @@ const BLACK_TLD = Array.from(new Set([
         domainCountMap[apexDomain] ||= 0;
         domainCountMap[apexDomain] += 1;
 
+        // Add more weight if the domain is long enough
         if (domain.length > 45) {
-          // Add more weight if the domain is long enough
           domainCountMap[apexDomain] += 1;
+        } else if (domain.length > 35) {
+          domainCountMap[apexDomain] += 0.5;
         }
       }
     }