mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Stricter Phishing domain extraction
This commit is contained in:
parent
3418838405
commit
57543c9d48
@ -66,9 +66,11 @@ const BLACK_TLD = Array.from(new Set([
|
|||||||
domainCountMap[apexDomain] ||= 0;
|
domainCountMap[apexDomain] ||= 0;
|
||||||
domainCountMap[apexDomain] += 1;
|
domainCountMap[apexDomain] += 1;
|
||||||
|
|
||||||
if (domain.length > 45) {
|
|
||||||
// Add more weight if the domain is long enough
|
// Add more weight if the domain is long enough
|
||||||
|
if (domain.length > 45) {
|
||||||
domainCountMap[apexDomain] += 1;
|
domainCountMap[apexDomain] += 1;
|
||||||
|
} else if (domain.length > 35) {
|
||||||
|
domainCountMap[apexDomain] += 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user