mirror of
https://github.com/SukkaW/Surge.git
synced 2026-03-15 07:26:42 +08:00
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled
Build / Remove Artifacts after Deployment (push) Has been cancelled
Seriously, why don't fucking Backblaze request Public Suffix? It is the whole reason your main domain getting blocked.
133 lines
2.9 KiB
TypeScript
133 lines
2.9 KiB
TypeScript
import { createRetrieKeywordFilter as createKeywordFilter } from 'foxts/retrie';
|
|
|
|
export const BLACK_TLD = new Set([
|
|
'accountant', 'art', 'autos',
|
|
'bar', 'beauty', 'bid', 'bio', 'biz', 'bond', 'business', 'buzz',
|
|
'casa', 'cc', 'cf', 'cfd', 'click', 'cloud', 'club', 'cn', 'codes',
|
|
'co.uk', 'co.in', 'com.br', 'com.cn', 'com.pl', 'com.vn',
|
|
'cool', 'cricket', 'cyou',
|
|
'date', 'design', 'digital', 'download',
|
|
'email',
|
|
'faith', 'fit', 'fun',
|
|
'ga', 'games', 'gd', 'gives', 'gq', 'group',
|
|
'help', 'host',
|
|
'icu', 'id', 'info', 'ink',
|
|
'lat', 'life', 'live', 'link', 'loan', 'lol', 'love', 'ltd',
|
|
'me', 'media', 'men', 'ml', 'mobi', 'movie', 'mom', 'monster',
|
|
'net.pl', 'ninja',
|
|
'one', 'online',
|
|
'party', 'pro', 'pl', 'pw',
|
|
'qpon', 'quest',
|
|
'racing', 'rest', 'review', 'rf.gd',
|
|
'sa.com', 'sbs', 'science', 'shop', 'site', 'skin', 'space', 'store', 'stream', 'su', 'support', 'surf',
|
|
'tech', 'tk', 'tokyo', 'top', 'trade',
|
|
'vip', 'vn',
|
|
'webcam', 'website', 'win',
|
|
'xyz',
|
|
'za.com'
|
|
]);
|
|
|
|
export const WHITELIST_MAIN_DOMAINS = new Set([
|
|
// 'w3s.link', // ipfs gateway
|
|
// 'dweb.link', // ipfs gateway
|
|
// 'nftstorage.link', // ipfs gateway
|
|
'fleek.cool', // ipfs gateway
|
|
'flk-ipfs.xyz', // ipfs gateway
|
|
'business.site', // Drag'n'Drop site building platform
|
|
'page.link', // Firebase URL Shortener
|
|
// 'notion.site', d
|
|
// 'vercel.app',
|
|
'gitbook.io',
|
|
'zendesk.com',
|
|
'ipfs.eth.aragon.network',
|
|
'wordpress.com',
|
|
'cloud.microsoft', // actually owned by Microsoft
|
|
'windows.net', // Microsoft refuses to add web.core.windows.net to the Public Suffix List
|
|
'myqcloud.com', // curben phishing-filter contains many entries
|
|
'surge.sh', // caused by phishing-filter, also no public suffix
|
|
'backblazeb2.com', // phishing-filter, no publicsuffix, too much abuse
|
|
|
|
'pages.dev',
|
|
'workers.dev'
|
|
]);
|
|
|
|
export const leathalKeywords = createKeywordFilter([
|
|
'vinted-',
|
|
'inpost-pl',
|
|
'vlnted-',
|
|
'allegrolokalnie',
|
|
'thetollroads',
|
|
'getipass',
|
|
'.secure.txtag',
|
|
|
|
'00lx.',
|
|
'0-lx.',
|
|
'01-x',
|
|
'0llx',
|
|
'0lx.',
|
|
'olx.o',
|
|
|
|
// Fake TLD
|
|
'.pl-',
|
|
'-pl.',
|
|
'.com-',
|
|
'-com.',
|
|
'.net-',
|
|
'.org-',
|
|
'.gov-',
|
|
'-gov.',
|
|
'.au-',
|
|
'.co.uk-',
|
|
'.de-',
|
|
'.eu-',
|
|
'.us-',
|
|
'.uk-',
|
|
'.ru-'
|
|
]);
|
|
|
|
export const sensitiveKeywords = createKeywordFilter([
|
|
'amazon',
|
|
'fb-com',
|
|
'focebaak',
|
|
'facebook',
|
|
'metamask',
|
|
'apple',
|
|
'icloud',
|
|
'coinbase',
|
|
'booking.',
|
|
'booking-',
|
|
'vinted.',
|
|
'vinted-',
|
|
'inpost-pl',
|
|
'microsoft',
|
|
'google',
|
|
'minecraft',
|
|
'staemco',
|
|
'oferta',
|
|
'txtag',
|
|
'paypal',
|
|
'dropbox',
|
|
'payment',
|
|
'instagram'
|
|
]);
|
|
|
|
export const lowKeywords = createKeywordFilter([
|
|
'transactions',
|
|
'wallet',
|
|
'-faceb', // facebook fake
|
|
'.faceb', // facebook fake
|
|
'virus-',
|
|
'-roblox',
|
|
'-co-jp',
|
|
'customer.',
|
|
'customer-',
|
|
'.www-',
|
|
'.www.',
|
|
'.www2',
|
|
'microsof',
|
|
'password',
|
|
'recover',
|
|
'banking',
|
|
'shop'
|
|
]);
|