<% Response.buffer=True%> <% bannip = false set rsbann = baglan.execute("select ip from ipbloke") Do While Not rsbann.EOF if Request.ServerVariables("REMOTE_ADDR") = rsbann("ip") then bannip = true end if rsbann.movenext Loop if bannip = true then Response.Redirect("yasakli_ip.asp") else end if %>