十八,NAS对接-->过期前后提醒
过期提醒原理是计费下发一个值告诉路由,用户允许上线,但已经过期,路由收到后让用户上线并阻止上网,打开所有页面都指向过期提醒的页面。
不是所有路由都支持这个功能。
过期提醒页面是基于http的,但现在多数都是https了,所以这是历史功能了,用途有限。
如果计费在云端,云端流量大多数1M-10M不等,遇到内网有一些过期账号不正常的设备,不会的刷页面导致不断的跳提醒,会把云端流量消耗干净,已经发生多次请注意云端一般不要把过期提醒转到计费的提醒页面上。
部分调用的HTML代码提示
---------------------我是分割线不要复制我--------------------------------
Panabit快要过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<!--手机宽度固定-->
<meta name=''viewport'' content=''width=600,target-densitydpi=high-dpi,user-scalable=yes''/>
<script type=''text/javascript''>
//取用户名
var user=document.getElementsByTagName(''b'')[0].innerHTML
user=user.substr(4)
user=user.replace(''天后到期,为不影响您使用网络,请尽快续费,谢谢!'','''')
var str=user.split(''将于'')
user=str[0]
//清理原内容
document.body.innerHTML='''';
</script>
<iframe frameborder=0 src=''about:blank''name=''pushmain'' width=''100%'' height=''1000''></iframe>
<form id=''push'' name=''push'' target=''pushmain'' method=''post'' action=''http://计费IP:1086''>
<input type=''hidden'' name=''user''>
</form>
<script type=''text/javascript''>
document.forms[''push''].user.value=user
document.forms[''push''].submit()
</script>
---------------------我是分割线不要复制我--------------------------------
Panabit已经过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<!--手机宽度固定-->
<meta name=''viewport'' content=''width=600,target-densitydpi=high-dpi,user-scalable=yes''/>
<script type=''text/javascript''>
//取用户名
var user=document.getElementsByTagName(''b'')[0].innerHTML
user=user.substr(4)
user=user.replace(''已经过期,请续费,谢谢!'','''')
//清理原内容
document.body.innerHTML='''';
</script>
<iframe frameborder=0 src=''about:blank''name=''pushmain'' width=''100%'' height=''1000''></iframe>
<form id=''push'' name=''push'' target=''pushmain'' method=''post'' action=''http://计费IP:1087''>
<input type=''hidden'' name=''user''>
</form>
<script type=''text/javascript''>
document.forms[''push''].user.value=user
document.forms[''push''].submit()
</script>
---------------------我是分割线不要复制我--------------------------------
维盟快要过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="viewport" content="width=600,target-densitydpi=high-dpi,user-scalable=yes" />
<script type=''text/javascript''>
function GetQueryString(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r!=null) return unescape(r[2]); return null;
}
function init()
{
document.forms[''push''].user.value=GetQueryString("name");
document.forms[''push''].submit();
}
</script>
</head>
<body oncontextmenu=''return false;'' onLoad="init();" >
<iframe frameborder=0 src=''about:blank''name=''pushmain'' width=''100%'' height=''1000''></iframe>
<form id=''push'' name=''push'' target=''pushmain'' method=''post'' action=''http://192.168.88.1:1086''>
<input type=''hidden'' name=''user''>
</form>
</body>
</html>
---------------------我是分割线不要复制我--------------------------------
维盟已经过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="viewport" content="width=600,target-densitydpi=high-dpi,user-scalable=yes" />
<script type=''text/javascript''>
function GetQueryString(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r!=null) return unescape(r[2]); return null;
}
function init()
{
document.forms[''push''].user.value=GetQueryString("name");
document.forms[''push''].submit();
}
</script>
</head>
<body oncontextmenu=''return false;'' onLoad="init();" >
<iframe frameborder=0 src=''about:blank''name=''pushmain'' width=''100%'' height=''1000''></iframe>
<form id=''push'' name=''push'' target=''pushmain'' method=''post'' action=''http://192.168.88.1:1087''>
<input type=''hidden'' name=''user''>
</form>
</body>
</html>
---------------------我是分割线不要复制我--------------------------------
神行者快要过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<!--调用原内容不显示出来-->
<center><h1 style="font-family: ''微软雅黑'';">尊敬的<span id="sName">WWWWW</span>:您的账号将于<span id="sTime" style="color: #ff0000;"></span>到期!<br><br>请及时续费,谢谢</h1></center>
<script type=''text/javascript'' src="msg.js"></script>
<!--手机宽度固定-->
<meta name=''viewport'' content=''width=600,target-densitydpi=high-dpi,user-scalable=yes''/>
<script type=''text/javascript''>
//清理原内容
document.body.innerHTML="";
</script>
<iframe frameborder=0 src=''about:blank''name=''pushmain'' width=''100%'' height=''1000''></iframe>
<form id=''push'' name=''push'' target=''pushmain'' method=''post'' action=''http://计费IP:1086''>
<input type=''hidden'' name=''user''>
</form>
<script type=''text/javascript''>
document.forms[''push''].user.value=GetQueryString(''account'');
document.forms[''push''].submit();
</script>
---------------------我是分割线不要复制我--------------------------------
神行者已经过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<!--调用原内容不显示出来-->
<center ><h1 style="font-family: ''微软雅黑'';">尊敬的<span id="sName">WWWWW</span>:您的账号已经<span id="sTime" style="color: #ff0000;display:none"></span><span style="color: #ff0000;">过期</span>!<br><br>请及时续费,谢谢</h1></center>
<script type=''text/javascript'' src="msg.js"></script>
<!--手机宽度固定-->
<meta name=''viewport'' content=''width=600,target-densitydpi=high-dpi,user-scalable=yes''/>
<script type=''text/javascript''>
//清理原内容
document.body.innerHTML="";
</script>
<iframe frameborder=0 src=''about:blank''name=''pushmain'' width=''100%'' height=''1000''></iframe>
<form id=''push'' name=''push'' target=''pushmain'' method=''post'' action=''http://计费IP:1087''>
<input type=''hidden'' name=''user''>
</form>
<script type=''text/javascript''>
document.forms[''push''].user.value=GetQueryString(''account'');
document.forms[''push''].submit();
</script>
---------------------我是分割线不要复制我--------------------------------
内网快要过期和已经过期直接转向,1086快要过期,1087已经过期
---------------------我是分割线不要复制我--------------------------------
<!-- 只需要修改下面的计费IP便可 -->
<!--手机宽度固定-->
<meta name="viewport" content="width=600,target-densitydpi=high-dpi,user-scalable=yes"/>
<script type=''text/javascript''>
//清理原内容
document.body.innerHTML="";
</script>
<iframe frameborder=0 src=''http://计费IP:1086'' width="100%" height="1000"></iframe>© 凌风认证计费 http://www.lflflf.net/