Jump to content

IP BAN


DeanWhitehouse

Recommended Posts

using one of them methods, is it possible to show them a message if there ip is banned and if it isn't show them something else,

something like this

$ip = $_SERVER['REMOTE_ADDR']; //how can i store this address to ban them as this only shows the address???

if($ip == user1);
{
echo "go away";
}

else
{
echo "Hello, we like you";
}

Link to comment
https://forums.phpfreaks.com/topic/102242-ip-ban/#findComment-523506
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.