全球主机交流论坛
标题:
好吧,研究了一下,反代hostloc登录和搜索跳转回原网站了
[打印本页]
作者:
sansam
时间:
2013-4-13 14:17
标题:
好吧,研究了一下,反代hostloc登录和搜索跳转回原网站了
本帖最后由 sansam 于 2013-4-14 09:50 编辑
1.登录后返回原网站
论坛登录成功后会把跳转地址通过xml的方式返回浏览器,如下:
<?xml version="1.0" encoding="utf-8"?>
<root><![CDATA[<script type="text/javascript" reload="1">if(typeof succeedhandle_login=='function') {succeedhandle_login('http://www.hos tloc.com', '欢迎您回来,论坛元老 sansam,现在将转入登录前页面', {'username':'sansam','usergroup':'论坛元老','uid':'19798','groupid':'15','syn':'0'});}hideWindow('login');showDialog('欢迎您回来,论坛元老 sansam,现在将转入登录前页面', 'right', null, function () { window.location.href ='http://www.host loc.com'; }, 0, null, null, null, null, null, 3);</script>]]></root>
复制代码
默认的substitutions4nginx设置是替换html的内容,替换不了xml的,所以我们只需要添加一行
subs_filter_types text/html text/xml;
复制代码
重启nginx
2.搜索论坛返回原网站
Discuz论坛采用腾讯的SOSO搜索引擎,所以我们需要把这个搜索引擎也反代了
在nginx新建一个网站,比如域名search.hostclub.cn,添加
subs_filter 'disc uz.qq.com' 'hostclub.cn' gi;
复制代码
,重启nginx,就得到一个完全属于你的hostloc了。
作者:
malbi
时间:
2013-4-13 14:19
这个厉害啊
作者:
zhangjian
时间:
2013-4-13 15:53
顶起 mjj.wyun.org
作者:
smyz
时间:
2013-4-13 16:03
AMProxy
http://www.sunk.eu.org/forum.php ... 745&pid=2653928
作者:
☆校长☆
时间:
2013-4-13 17:40
看不懂
作者:
犯戒心
时间:
2013-4-13 21:31
牛
作者:
znithy
时间:
2013-4-14 02:30
这贴不错
作者:
loveminds
时间:
2013-4-14 03:28
稳定的反代还是要搞个,一些地方loc无法访问
欢迎光临 全球主机交流论坛 (https://sunk.eu.org/)
Powered by Discuz! X3.4