IP投票限制源码

来源:百度知道 编辑:UC知道 时间:2024/05/14 18:38:44
下面的源码如何改为不受限制。

或者改为在几个小时内同一个IP只能投一次票啊?

急用

'===IP限制
Function getIP()
getIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If getIP = "" Then getIP = (Request.ServerVariables("REMOTE_ADDR"))
End Function

if Session("tp")="yes" then
Response.write("<script language='javascript'>alert('您已经投票,请稍后再来投票!');location='index.asp';</script>")
Response.End()
end if
'===IP限制

sql="update Vote set ps=ps+1 where id="&pid
conn.execute(sql)
Session("tp")="yes"
%>
<!-- #include file="Top.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="778" border=

if Session("tp")="yes" then
Response.write("<script language='javascript'>alert('您已经投票,请稍后再来投票!');location='index.asp';</script>")
Response.End()
end if

上面这段代码 删掉