谷歌广告联盟修改
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
})();
|
||||
</script>
|
||||
|
||||
{if $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||
{if $DomainModel->d_domain == 'bdmoju.com' || $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8715396333009435"
|
||||
crossorigin="anonymous"></script>
|
||||
{/if}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
})();
|
||||
</script>
|
||||
|
||||
{if $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||
{if $DomainModel->d_domain == 'bdmoju.com' || $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8715396333009435"
|
||||
crossorigin="anonymous"></script>
|
||||
{/if}
|
||||
|
||||
@@ -40,6 +40,11 @@
|
||||
s.parentNode.insertBefore(bp, s);
|
||||
})();
|
||||
</script>
|
||||
{if $DomainModel->d_domain == 'bdmoju.com' || $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8715396333009435"
|
||||
crossorigin="anonymous"></script>
|
||||
{/if}
|
||||
|
||||
</head>
|
||||
|
||||
{block name="strPageCode"}
|
||||
|
||||
@@ -540,7 +540,7 @@ class SiteContext
|
||||
|
||||
// var_dump($intRequestTotalLimit10);
|
||||
// 检查请求次数是否超过限制
|
||||
if ($intRequestTotalLimit10 > 100 && !$arrVisitInfo['vil_is_spider']) {
|
||||
if ($intRequestTotalLimit10 > 60 && !$arrVisitInfo['vil_is_spider']) {
|
||||
throw new HttpException(404, 'Too Many Requests');
|
||||
// abort(403, 'Too Many Requests');
|
||||
}
|
||||
|
||||
@@ -185,6 +185,7 @@ const arrCsGoToDomain = [
|
||||
|
||||
// google
|
||||
const arrCsGoogleToDomain = [
|
||||
'bdmoju.com',
|
||||
'jksrjhq.com',
|
||||
'gyssjxq.com',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user