mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Stricter Phishing Domain detection
This commit is contained in:
parent
d8dfaf0d04
commit
eb12eee2f9
@ -74,6 +74,13 @@ const BLACK_TLD = Array.from(new Set([
|
||||
domainCountMap[apexDomain] += 1;
|
||||
} else if (domain.length > 30) {
|
||||
domainCountMap[apexDomain] += 0.5;
|
||||
} else if (domain.length > 25) {
|
||||
domainCountMap[apexDomain] += 0.25;
|
||||
}
|
||||
|
||||
const subdomain = tldts.getSubdomain(domain, { allowPrivateDomains: true });
|
||||
if (subdomain && subdomain.includes('.')) {
|
||||
domainCountMap[apexDomain] += 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user