Jump to content

user IP


pluginbaby

Recommended Posts

[code]<?php

$ip=$_SERVER['REMOTE_ADDR'];

// insert in db

// select from db all players with that id

// if there is more then 1 players with the same IP => set multi status +1

if (empty($_COOKIE['cookie_user'])) {

setcookie("cookie_user","$username",Time()+604800);
}

if ($_COOKIE['cookie_user'] != $username) {

//update multi status: +1

}

// if multi status = 6, send admin a message with the user beeing spotted for multiing

?>[/code]

I came up with a basic idea, does this look good?
Link to comment
Share on other sites

You can not rely on IP to determin wether a person (or more specificly a pc) has multiple accounts. Some people share their IP, some have dynamic IP's, it simply won't do. Cookies aren't relyable either. It's just a plain file, I (the user) can adjust it as I see fit. Your best option is to bind the users' MAC adress, as it doesn't change (often).

I recently ran into [url=http://forums.devarticles.com/general-programming-help-4/how-can-i-find-out-the-user-mac-address-1846.html]this[/url] thread on DevShed that'll give you an insight.
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.