Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
418 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# WeChatTools | ||
1、微信域名检测("已停止访问该网页","网页包含诱导分享、诱导关注内容,被多人投诉,为维护绿色上网环境,已停止访问") | ||
2、中转(微信公众号网页域名随机生成跳转,搭配1功能保证活动正常访问) | ||
# WeChatTools | ||
1、微信域名检测("已停止访问该网页","网页包含诱导分享、诱导关注内容,被多人投诉,为维护绿色上网环境,已停止访问") | ||
2、中转(微信公众号网页域名随机生成跳转,搭配1功能保证活动正常访问) | ||
3、微信公众号图片url中转 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# WeChatTools | ||
|
||
|
||
> 1、微信域名检测("已停止访问该网页","网页包含诱导分享、诱导关注内容,被多人投诉,为维护绿色上网环境,已停止访问") | ||
|
||
> 2、中转(微信公众号网页域名随机生成跳转,搭配1功能保证活动正常访问) | ||
|
||
> 3、微信公众号图片url中转 | ||
### 微信域名检测自动切换简单示意图 | ||
|
||
![微信公众号活动网址自动切换方案](微信公众号活动网址自动切换方案.jpg) | ||
|
||
# WeChatTools | ||
|
||
|
||
> 1、微信域名检测("已停止访问该网页","网页包含诱导分享、诱导关注内容,被多人投诉,为维护绿色上网环境,已停止访问") | ||
|
||
> 2、中转(微信公众号网页域名随机生成跳转,搭配1功能保证活动正常访问) | ||
|
||
> 3、微信公众号图片url中转 | ||
### 微信域名检测自动切换简单示意图 | ||
|
||
![微信公众号活动网址自动切换方案](微信公众号活动网址自动切换方案.jpg) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<?php | ||
// 主域名(也就是当前这个页面) http://www.xxx.com/index.php | ||
|
||
// 副域名池 http://www.BBB.com/xxx/yyy/xxx.html | ||
// 副域名池 http://www.CCC.com/xxx/yyy/xxx.html | ||
// 副域名池 http://www.DDD.com/xxx/yyy/xxx.html | ||
//推广链接如下: | ||
//"http://www.xxx.com/index.php?url=http://www.BBB.com/xxx/yyy/xxx.html" ; | ||
|
||
$url = $_GET["url"]; | ||
|
||
//域名池 | ||
$urlList =array(0=>"www.BBB.com",1=>"www.CCC.com";2=>"wwww.DDD.com"); | ||
|
||
$arr = range(0,2); | ||
|
||
$domain = $urlList[$arr]; //这里可以去调用检测接口,看是否屏蔽,屏蔽了,urlList剔除掉,再随机 ; | ||
|
||
$url="http://".$domain."/xxx/yyy/xxx.html"; | ||
|
||
header('Location: $url'); | ||
|
||
//确保重定向后,后续代码不会被执行 | ||
die; | ||
?> | ||
|
||
<?php | ||
// 主域名(也就是当前这个页面) http://www.xxx.com/index.php | ||
|
||
// 副域名池 http://www.BBB.com/xxx/yyy/xxx.html | ||
// 副域名池 http://www.CCC.com/xxx/yyy/xxx.html | ||
// 副域名池 http://www.DDD.com/xxx/yyy/xxx.html | ||
//推广链接如下: | ||
//"http://www.xxx.com/index.php?url=http://www.BBB.com/xxx/yyy/xxx.html" ; | ||
|
||
$url = $_GET["url"]; | ||
|
||
//域名池 | ||
$urlList =array(0=>"www.BBB.com",1=>"www.CCC.com";2=>"wwww.DDD.com"); | ||
|
||
$arr = range(0,2); | ||
|
||
$domain = $urlList[$arr]; //这里可以去调用检测接口,看是否屏蔽,屏蔽了,urlList剔除掉,再随机 ; | ||
|
||
$url="http://".$domain."/xxx/yyy/xxx.html"; | ||
|
||
header('Location: $url'); | ||
|
||
//确保重定向后,后续代码不会被执行 | ||
die; | ||
?> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<add key="Host" value="www.bbb.com,11.ccc.com,222.ddd.com,www.ddd.com" /> | ||
<add key="exp" value="xx.yy.zz" /> | ||
<add key="hmdOpenid" value="ocMqvwRjzPH9eseHRc_Z9nlP-DSM,ocMqvwRjzPH9eseHRc_Z79lP-DSM" /> | ||
<add key="state" value="true" /> | ||
<add key="tokens" value="BSBQvBerSsj8X23X,uDSrEHNs9CFGcTSC" /> | ||
</configuration> | ||
<!--<add key="Host" value="cn.zlfbam.cn,org.piayqx.cn" /> --> | ||
<!-- exp:异常处理后的备用域名--> | ||
<!--hmdOpenid:黑名单openid --> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<add key="Host" value="www.bbb.com,11.ccc.com,222.ddd.com,www.ddd.com" /> | ||
<add key="exp" value="xx.yy.zz" /> | ||
<add key="hmdOpenid" value="ocMqvwRjzPH9eseHRc_Z9nlP-DSM,ocMqvwRjzPH9eseHRc_Z79lP-DSM" /> | ||
<add key="state" value="true" /> | ||
<add key="tokens" value="BSBQvBerSsj8X23X,uDSrEHNs9CFGcTSC" /> | ||
</configuration> | ||
<!--<add key="Host" value="cn.zlfbam.cn,org.piayqx.cn" /> --> | ||
<!-- exp:异常处理后的备用域名--> | ||
<!--hmdOpenid:黑名单openid --> | ||
<!--state:状态 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<add key="api" value="http://wx.test.com/" /> | ||
<add key="wxCheckApi" value="http://wx.canyou168.com/pro/wxUrlCheck.ashx" /> | ||
<add key="wxCheckApiKey" value="341e0b5df120394ec99e517b67774399" /> | ||
<add key="wxShowImg" value="image.xxxx.com" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<add key="api" value="http://wx.test.com/" /> | ||
<add key="wxCheckApi" value="http://wx.canyou168.com/pro/wxUrlCheck.ashx" /> | ||
<add key="wxCheckApiKey" value="341e0b5df120394ec99e517b67774399" /> | ||
<add key="wxShowImg" value="image.xxxx.com" /> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# 防封自动切换系统部署 | ||
|
||
> 1.下载此文件所在的文件夹publish,windows部署iis,指向这个publish文件(www.aaa.com),应用池选择.net 4.0 | ||
> 2.打开config/HostUrl.config, 配置域名池,下面这些域名泛解析指向用户最终要访问的站点(也就是大家要推广的站点) | ||
``` | ||
<add key="Host" value="www.bbb.com,11.ccc.com,222.ddd.com,www.ddd.com" /> | ||
``` | ||
|
||
> 3.打开config/WeiXin.config, 配置微信域名检测的api和key,默认采用测试的api和key. | ||
``` | ||
<add key="wxCheckApi" value="http://wx.canyou168.com/pro/wxUrlCheck.ashx" /> | ||
<add key="wxCheckApiKey" value="341e0b5df120394ec99e517b67774399" /> | ||
``` | ||
|
||
> 4.访问 http://www.aaa.com/dev/urlTransfer.ashx?url={传用户当前推广的网址}&domain={传用户当前推广的域名(url=网址里面的域名,主要是分割url用的)} | ||
``` | ||
例如: | ||
http://www.aaa.com/dev/urlTransfer.ashx?domain=www.bbb.com&url=http%3a%2f%2fwww.bbb.com%2findex.php%3fg%3dWap%26m%3dVote%26a%3dindex%26token%3duDSrEHNs9CFGcTSC%26wecha_id%3docMqvwRjzPH9eseHRc_Z9nlP-DSM%26id%3d25%26iMicms%3dmp.weixin.qq.com | ||
``` | ||
- 注意:url=需要http编码过的 | ||
|
||
# 防封自动切换系统部署 | ||
|
||
> 1.下载此文件所在的文件夹publish,windows部署iis,指向这个publish文件(www.aaa.com),应用池选择.net 4.0 | ||
> 2.打开config/HostUrl.config, 配置域名池,下面这些域名泛解析指向用户最终要访问的站点(也就是大家要推广的站点) | ||
``` | ||
<add key="Host" value="www.bbb.com,11.ccc.com,222.ddd.com,www.ddd.com" /> | ||
``` | ||
|
||
> 3.打开config/WeiXin.config, 配置微信域名检测的api和key,默认采用测试的api和key. | ||
``` | ||
<add key="wxCheckApi" value="http://wx.canyou168.com/pro/wxUrlCheck.ashx" /> | ||
<add key="wxCheckApiKey" value="341e0b5df120394ec99e517b67774399" /> | ||
``` | ||
|
||
> 4.访问 http://www.aaa.com/dev/urlTransfer.ashx?url={传用户当前推广的网址}&domain={传用户当前推广的域名(url=网址里面的域名,主要是分割url用的)} | ||
``` | ||
例如: | ||
http://www.aaa.com/dev/urlTransfer.ashx?domain=www.bbb.com&url=http%3a%2f%2fwww.bbb.com%2findex.php%3fg%3dWap%26m%3dVote%26a%3dindex%26token%3duDSrEHNs9CFGcTSC%26wecha_id%3docMqvwRjzPH9eseHRc_Z9nlP-DSM%26id%3d25%26iMicms%3dmp.weixin.qq.com | ||
``` | ||
- 注意:url=需要http编码过的 | ||
|
||
> 5.修改大家需要推广的站点,分享链接,推送链接等等 |
Oops, something went wrong.