⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ip.asp

📁 1.可以批量添加电影
💻 ASP
字号:
<%
   if LockIP(Request.ServerVariables("REMOTE_ADDR")) then%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系 统 提 示</title>
<style><!--body, td, p, li, input, select{FONT-SIZE: 9pt; font-family:宋体; COLOR: #ffffff; font-family:Arial}

.fontshadow { width:100%; filter:dropshadow(color=#ffffff,offx=1,offy=1);}

A:link{COLOR: #ffffff; text-decoration: none;}
A:visited{COLOR: #ffffff; text-decoration: none;}
A:Active{color : #ffffff; TEXT-DECORATION: none;}
A:hover{color: #ffffff; TEXT-DECORATION: none;}

A.a1:link{COLOR: #000000; TEXT-DECORATION: none;}
A.a1:visited{COLOR: #000000; TEXT-DECORATION: none;}
A.a1:Active{color : #000000; TEXT-DECORATION: none;}
A.a1:hover{color : #000000; TEXT-DECORATION: none;}

A.a2:link{COLOR: #1B409B; TEXT-DECORATION: none;}
A.a2:visited{COLOR: #1B409B; TEXT-DECORATION: none;}
A.a2:Active{color : #1B409B; TEXT-DECORATION: none;}
A.a2:A:hover{color: #1B409B;T EXT-DECORATION: none;}

.L17{line-height:170%}
.L18{line-height:180%}
.L20{line-height:200%}
--></style>
</head>

<body bgcolor="#0F0DAE" text="0" leftmargin="0">
  <table border="0" cellspacing="0" align=center style="border-collapse: collapse" bordercolor="#111111" width="359" id="AutoNumber1" cellpadding="0">
  <TR> 
    <TD align="center" class="title">
    <img border="0" src="../images/login-top1.gif" width="359" height="85"></TD>
  </TR>
  <TR> 
    <TD valign="top" background="../images/login-bg.jpg"  >
 <table width="90%" border="0" align="center">
<tbody>
<TR>
                <TD align="center" height=35><FONT color=#000000 class="fontshadow"><b>系 统 提 示</b></FONT></TD>
                </TR>
                    <tr> 
                        <td align=right width="105%" height=76>
                        <p align="center"><FONT color=#000000 class="fontshadow">您的IP已经被限制不能访问本系统,请和管理员联系</td>
                      </tr>
                      <</table></TD>
  </TR>
  <tr> 
    <td><img border="0" src="../images/login-bottom.gif" width="359" height="28"></td>
  </tr>
</TABLE>
</body>
</html>
<%
	response.end
	end if

'用户IP限制
function LockIP(sip)
	dim str1,str2,str3,str4
	dim num
	LockIP=false
	if isnumeric(left(sip,2)) then
		str1=left(sip,instr(sip,".")-1)
		sip=mid(sip,instr(sip,".")+1)
		str2=left(sip,instr(sip,".")-1)
		sip=mid(sip,instr(sip,".")+1)
		str3=left(sip,instr(sip,".")-1)
		str4=mid(sip,instr(sip,".")+1)
		if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 then
	
		else
			num=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
			sql="select count(*) from LockIP where ip1 <="&num&" and ip2 >="&num&""
			set rs_ip=conn.execute(sql)
			if rs_ip(0)>0 then 
				LockIP=true
			end if
			set rs_ip=nothing
		end if
	end if
end function
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -