使用 Cloudflare Worker 一键免费代理 Google 站点
export default { async fetch ( request , env ) { const url = new URL ( request . url ) ; const targetURL = new URL ( url . pathname , `https:// ${ env . TARGET_HOSTNAME } ` ) ; targetURL . search = url . search ; const newHeaders = new Headers ( request . headers ) ; const sensitiveHeaders = [ 'host' , 'origin' , 'referer' , 'x-forwarded-host' , 'x-real-ip' , 'x-forwarded-for' , 'cf-ray' , 'cf-connecting-ip' , 'accept-language' , 'cache-control' , 'sec-ch-ua' , 'sec-ch-ua-mobile' , 'sec-ch-ua-platform' , 'sec-fetch-dest' , 'sec-fetch-mode' , 'sec-fetch-site' , 'sec-fetch-user' , 'upgrade-insecure-requests' ] ; sensitiveHeaders . forEach ( header => ...