mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Strengthen Phishing Score Calculation
This commit is contained in:
@@ -26,12 +26,10 @@ export async function fetchAssets(
|
||||
try {
|
||||
await waitWithAbort(1800 + (index + 1) * 1200, controller.signal);
|
||||
} catch {
|
||||
console.log(picocolors.gray('[fetch cancelled early]'), picocolors.gray(url));
|
||||
throw reusedCustomAbortError;
|
||||
}
|
||||
}
|
||||
if (controller.signal.aborted) {
|
||||
console.log(picocolors.gray('[fetch cancelled]'), picocolors.gray(url));
|
||||
throw reusedCustomAbortError;
|
||||
}
|
||||
if (index >= 0) {
|
||||
|
||||
@@ -105,8 +105,10 @@ const pool = new Worktank({
|
||||
} else {
|
||||
if (BLACK_TLD.has(tld)) {
|
||||
score += 3;
|
||||
} else if (tld.length > 6) {
|
||||
} else if (tld.length > 4) {
|
||||
score += 2;
|
||||
} else if (tld.length > 5) {
|
||||
score += 4;
|
||||
}
|
||||
if (apexDomain.length >= 18) {
|
||||
score += 0.5;
|
||||
|
||||
Reference in New Issue
Block a user