We have a contact form on our school website and we want to stop students from the school sending SPAM. There are 2 areas of the school and both have their own IP address. I managed to get it to work with one IP but I need to add 2 IP addresses in the code.
I tried this but it did not work:
Dim IP
IP= Trim(Request.ServerVariables("REMOTE_ADDR"))
IF IP = "***.**.15.87" OR IP= "***.**.15.67" THEN
RESPONSE.REDIRECT("Warning.asp")
END IF
I have removed the numbers where * is for this message.
I tried it with just one IP address and it worked. I think I may have writen the code wrong for the other IP.
Thanks