- Impact
- 0
If you are looking to ban a few IPs, try this.
Code:
if (strcasecmp(getenv("REMOTE_ADDR"), "someIP") == 0)
{
echo "You have been banned.\n";
exit;
}