asyncfunctionfetchAndApply(request) { const region = request.headers.get('cf-ipcountry').toUpperCase();
if (blocked_region.includes(region)) { response = newResponse('Access denied: This page is not available in your region yet.', { // 返回错误提示 status: 403 }); } else{ response = newResponse(text, { headers: { 'Content-Type': 'text/html; charset=utf-8' } }); } return response; }