'判断来路,禁止外部提交 dim server_v1,server_v2 server_v1=cstr(request.servervariables("http_referer")) server_v2=cstr(request.servervariables("server_name")) if server_v1="" or instr(server_v1,"/add.asp")<=0 or mid(server_v1,8,len(server_v2))<>server_v2 then response.write "" response.end end if
<%'当用户每提交一次 if request.cookies("postnum")="" then response.cookies("postnum")=1 response.cookies("postnum").expires=dateadd("h", 24, now()) else response.cookies("postnum")=request.cookies("postnum")+1 end if if request.cookies("postnum") > 5 then response.write "" response.end end if %>