作者 赵彬吉

update

@@ -108,6 +108,17 @@ class SyncSubmitTaskService @@ -108,6 +108,17 @@ class SyncSubmitTaskService
108 if ($tran_visit && $tran_visit !='en' && ($checkIpCountry['country'] == '美国' || $tran_country != $checkIpCountry['country'])) { 108 if ($tran_visit && $tran_visit !='en' && ($checkIpCountry['country'] == '美国' || $tran_country != $checkIpCountry['country'])) {
109 throw new InquiryFilterException( '判定为蜘蛛爬取小语种'); 109 throw new InquiryFilterException( '判定为蜘蛛爬取小语种');
110 } 110 }
  111 +
  112 + //2024-04-14 关杰: https://www.vogi-dcs.com/ 项目 没有访问来源的,且ua是一下两个,跳过
  113 + //Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
  114 + //Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
  115 + $ua = [
  116 + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
  117 + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
  118 + ];
  119 + if($project['id'] == 3216 && in_array($data['user_agent'], $ua)){
  120 + throw new InquiryFilterException( '判定为蜘蛛爬取小语种');
  121 + }
111 } 122 }
112 //域名 过滤国家或ip 123 //域名 过滤国家或ip
113 $domain_info = DomainInfo::getCacheInfoByProjectId($project['id']); 124 $domain_info = DomainInfo::getCacheInfoByProjectId($project['id']);