mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Update Phishing TLD
This commit is contained in:
parent
d5e8b83c60
commit
f46547edba
@ -34,12 +34,14 @@ const BLACK_TLD = new Set([
|
||||
'cricket',
|
||||
'cyou',
|
||||
'date',
|
||||
'digital',
|
||||
'download',
|
||||
'faith',
|
||||
'fit',
|
||||
'fun',
|
||||
'ga',
|
||||
'gd',
|
||||
'gives',
|
||||
'gq',
|
||||
'group',
|
||||
'host',
|
||||
@ -126,7 +128,7 @@ export const getPhishingDomains = (parentSpan: Span) => parentSpan.traceChild('g
|
||||
}
|
||||
|
||||
const tld = getPublicSuffix(safeGorhillLine, looseTldtsOpt);
|
||||
if (!tld || !BLACK_TLD.has(tld)) continue;
|
||||
if (!tld || (!BLACK_TLD.has(tld) && tld.length < 7)) continue;
|
||||
|
||||
domainCountMap[apexDomain] ||= 0;
|
||||
domainCountMap[apexDomain] += calcDomainAbuseScore(line);
|
||||
@ -159,7 +161,8 @@ export function calcDomainAbuseScore(line: string) {
|
||||
if (isPhishingDomainMockingCoJp) {
|
||||
weight += 4;
|
||||
}
|
||||
} else if (line.includes('.customer')) {
|
||||
}
|
||||
if (line.includes('.customer')) {
|
||||
weight += 0.25;
|
||||
}
|
||||
|
||||
|
||||
@ -305,6 +305,7 @@ inst.360safe.com
|
||||
.myenotice.com
|
||||
.eu5.net
|
||||
.jdie.pl
|
||||
.lumindigitalhosting.com
|
||||
|
||||
# --- AD Block ---
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user