mirror of
https://github.com/lush2020/CF-Workers-SUB.git
synced 2026-03-21 02:24:02 +08:00
Update _worker.js
This commit is contained in:
@@ -39,7 +39,7 @@ export default {
|
||||
if ( !(token == mytoken || url.pathname == ("/"+ mytoken) || url.pathname.includes("/"+ mytoken + "?")) ) {
|
||||
if ( TG == 1 && url.pathname !== "/" && url.pathname !== "/favicon.ico" ) await sendMessage("#异常访问", request.headers.get('CF-Connecting-IP'), `UA: ${userAgent}</tg-spoiler>\n域名: ${url.hostname}\n<tg-spoiler>入口: ${url.pathname + url.search}</tg-spoiler>`);
|
||||
return new Response('Hello World!', { status: 403 });
|
||||
} else if ( TG == 1 || !userAgent.includes('subconverter') ){
|
||||
} else if ( TG == 1 || !userAgent.includes('subconverter') || !userAgent.includes('null')){
|
||||
await sendMessage("#获取订阅", request.headers.get('CF-Connecting-IP'), `UA: ${userAgent}</tg-spoiler>\n域名: ${url.hostname}\n<tg-spoiler>入口: ${url.pathname + url.search}</tg-spoiler>`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user