mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 09:40:34 +08:00
Tightrn the Phishing Hosts & Add default fetch cache
This commit is contained in:
parent
b08570e1ac
commit
c5b88362ef
@ -63,6 +63,7 @@ export const leathalKeywords = createKeywordFilter([
|
|||||||
'.de-',
|
'.de-',
|
||||||
'.eu-',
|
'.eu-',
|
||||||
'.us-',
|
'.us-',
|
||||||
|
'.uk-',
|
||||||
'.ru-'
|
'.ru-'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -86,19 +87,18 @@ export const sensitiveKeywords = createKeywordFilter([
|
|||||||
'staemco',
|
'staemco',
|
||||||
'oferta',
|
'oferta',
|
||||||
'txtag',
|
'txtag',
|
||||||
'paypal'
|
'paypal',
|
||||||
|
'dropbox',
|
||||||
|
'payment',
|
||||||
|
'instagram'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export const lowKeywords = createKeywordFilter([
|
export const lowKeywords = createKeywordFilter([
|
||||||
'transactions-',
|
'transactions',
|
||||||
'payment',
|
|
||||||
'wallet',
|
'wallet',
|
||||||
'-transactions',
|
|
||||||
'-faceb', // facebook fake
|
'-faceb', // facebook fake
|
||||||
'.faceb', // facebook fake
|
'.faceb', // facebook fake
|
||||||
'facebook',
|
|
||||||
'virus-',
|
'virus-',
|
||||||
'apple-',
|
|
||||||
'-roblox',
|
'-roblox',
|
||||||
'-co-jp',
|
'-co-jp',
|
||||||
'customer.',
|
'customer.',
|
||||||
@ -106,10 +106,8 @@ export const lowKeywords = createKeywordFilter([
|
|||||||
'.www-',
|
'.www-',
|
||||||
'.www.',
|
'.www.',
|
||||||
'.www2',
|
'.www2',
|
||||||
'instagram',
|
|
||||||
'microsof',
|
'microsof',
|
||||||
'passwordreset',
|
'password',
|
||||||
'.google-',
|
|
||||||
'recover',
|
'recover',
|
||||||
'banking',
|
'banking',
|
||||||
'shop'
|
'shop'
|
||||||
|
|||||||
@ -120,7 +120,8 @@ setGlobalDispatcher(agent.compose(
|
|||||||
store: new BetterSqlite3CacheStore({
|
store: new BetterSqlite3CacheStore({
|
||||||
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
|
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
|
||||||
maxEntrySize: 1024 * 1024 * 100 // 100 MiB
|
maxEntrySize: 1024 * 1024 * 100 // 100 MiB
|
||||||
})
|
}),
|
||||||
|
cacheByDefault: 180 // 3 minutes
|
||||||
})
|
})
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user