Any help on this would be greatly appreciated.
Problem, have mail form that runs on php.
However I have this idiot that has taken it apon
itself to send me about 50 emails a day.
I have the IP & as it is coming from China I figure
I want to block to entire IP range. The script below is running
but it is not blocking this fool all the time.
Any ideas how to block this ratbag out?
Code: Select all
<script language="javascript">
var ip = '<!--#echo var="REMOTE_ADDR"-->'
if (ip == '61.154.*.*') {
alert("STOP! You are viewing this page from an IP address that is not allowed!");
alert("You really need to get a life!");
if (confirm("Do you want to leave peacefully? Or will I have to help you?"))
{location.href="http://www.loser.com" } else { ("OK you choose I don't care! Bye bye! Don't come back!"); {location.href="http://www.loser.com" }} }
</script>