feat(clean_url): titanhq

This commit is contained in:
MDLeom 2026-04-09 06:10:38 +00:00
parent 51b6aac184
commit 35c2f1e17b
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 4 additions and 3 deletions

View File

@ -27,14 +27,15 @@ const safeLinks = [
'\\.protection\\.sophos\\.com',
'linkprotect\\.cudasvc\\.com',
'ctp\\.trendmicro\\.com',
'urlsand\\.esvalabs\\.com'
'urlsand\\.esvalabs\\.com',
'linklock\\.titanhq\\.com'
]
const deSafelink = (urlStr) => {
let url = new URL(urlStr)
// O365 Safelinks & Trendmicro
if (url.hostname.endsWith('safelinks.protection.outlook.com') || url.hostname.endsWith('ctp.trendmicro.com')) {
// O365 Safelinks, Trendmicro, TitanHQ
if (url.hostname.endsWith('safelinks.protection.outlook.com') || url.hostname.endsWith('ctp.trendmicro.com') || url.hostname.endsWith('linklock.titanhq.com')) {
url = new URL(url.searchParams.get('url'))
}