I want to ban someone from my website.
So far, here's what I tried:
If someone with an IP that contained for example "188.91.1.x" entered my website, I would
die()
the site.Cookies
The user I am trying to ban went around the above steps I've taken.
There are public chatrooms on my website and I want to keep him out of it.
How would you guys keep this person banned?
Any way to get any other unique ID specific to the user's machine, or even browser?
Ps:
I can't ban by login name (tried it, he keeps creating a new account)
I can't white list, kind of for the same reason as the above.
Edit:
I found this code and it works when testing with HideMyAss.com
<?
if( @fsockopen( $_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1 ) )
{
die("I'm not letting you in");
}
else
{
?>
Hello normal user, thanks for not trying to use a proxy
<?
}
?>
Anything that could go wrong with it (even if just to try it out in production)?
Well, the fsockopen way seems to be only for web-based proxies (which is perfect as I believe he's using it). I will first count how many visitors I get which trigger the fsockopen code I've pasted in my post and see if appropriate for me to use as a next step towards success of banning that person.