<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DedeCMS软件频道防盗链设置

时间:2020-12-15

用DedeCMS软件模型的做的下载站,当转向最终下载页的时候容易被盗链,这样对网站流量受到一定的影响。设置防盗链也是很简单的,找到plus目录里的download.php并在如下代码:

$row = $dsql->GetOne("Select $vname From `".$cu->ChannelInfos['addtable']."` where aid='$aid'");

在上面增加判断语句

if(!strstr($_SERVER['HTTP_REFERER'],$arcurl))
{
    echo "<script language='javascript'>location=".$arcurl.";</script>";
}

意思:不是来自本地网址,就自动跳转到本地网址。通俗的说就是当从别的网站访问你的下载地址后,就自动判断跳转到以下这个下载页面的网址。
0
首页
案例
关于
联系