mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Update Phishing Black TLD & Reject Domainset Builder
This commit is contained in:
parent
c880ebc9f5
commit
ba29536177
@ -17,7 +17,8 @@ const BLACK_TLD = [
|
||||
'.shop',
|
||||
'.cool',
|
||||
'.cyou',
|
||||
'.id'
|
||||
'.id',
|
||||
'.pro'
|
||||
];
|
||||
|
||||
(async () => {
|
||||
|
||||
@ -230,7 +230,6 @@ const threads = isCI ? cpuCount : cpuCount / 2;
|
||||
console.log(`Start deduping from black keywords/suffixes! (${previousSize})`);
|
||||
console.time(`* Dedupe from black keywords/suffixes`);
|
||||
|
||||
const toBeRemoved = new Set();
|
||||
for (const domain of domainSets) {
|
||||
let isTobeRemoved = false;
|
||||
|
||||
@ -260,14 +259,10 @@ const threads = isCI ? cpuCount : cpuCount / 2;
|
||||
}
|
||||
|
||||
if (isTobeRemoved) {
|
||||
toBeRemoved.add(domain);
|
||||
domainSets.delete(domain);
|
||||
}
|
||||
}
|
||||
|
||||
toBeRemoved.forEach((removed) => {
|
||||
domainSets.delete(removed)
|
||||
});
|
||||
|
||||
console.timeEnd(`* Dedupe from black keywords/suffixes`);
|
||||
console.log(`Deduped ${previousSize} - ${domainSets.size} = ${previousSize - domainSets.size} from black keywords and suffixes!`);
|
||||
|
||||
|
||||
@ -15,6 +15,9 @@ DOMAIN-KEYWORD,.nimiq.
|
||||
DOMAIN-KEYWORD,anybest.
|
||||
DOMAIN-KEYWORD,dubester.
|
||||
|
||||
# >> duckdns.org (way too many abuse)
|
||||
DOMAIN-SUFFIX,duckdns.org
|
||||
|
||||
# --- End of Blacklist Section
|
||||
|
||||
# --- AD Block ---
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user