Jump to content

IP BAN


DeanWhitehouse

Recommended Posts

IP's can be dynamic, so don't store it on signup.  Store bans, and check it their IP when they access the page against the ban table.  You can get there IP by tracking the IP/username combo from which a message was posted (assuming you're building a forum).

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.