Jump to content
MakeWebGames

Recommended Posts

Posted

Would any one be intrested in an auto ban mod so if users trade between the same ip or do anything on the same ip to gether they get baned automaticly. if this is there 1st warning its a 3 day ban for all accounts on that ip then 6 for the 2nd time then 9 days for the 3rd time etc ... (can be changed to 4, 8, 12/5, 10, 15/6, 12, 18 etc...)

so if they done stuff like attacking each other/money transfer/item trade/crystal trade etc... then they would get baned automaticly.

This is a smallish mod so will cost $3-$5 and could save alot of time looking throgh staff logs.

If this has been done i wont bother posting it up or if people wont buy it i wont either. this is around about %90 done so i will post finished version up tomorow after work (20:00-21:00 GMT)

Posted

Re: Auto ban mod [V2]

 

if($myIp == $storedIP) {

 $scale = array(1,2,4,8,16,32,64,128,256,512,1024);
 $timeInJail = $scale[++$ir['timesBanned']];
 // Ban Query
 echo 'banned!';

}

 

More or less what you would need to work off

Posted

Re: Auto ban mod [V2]

cos games i use to play use to get 100-200 ppl a day and almost 5-10% of them same ip traded so in the staff logs you could spend ages looking throgh them and once you were finished you would hav to start again

Posted

Re: Auto ban mod [V2]

something at is a little better then a ban is to block same ip transfers

saves a lot of trouble to see if this happens

remember some people play at school\colleges that may never know they are at the same campus

Posted

Re: Auto ban mod [V2]

that is what im saying just Block it. then they cant do it. Oh...and if you want to block it.

Its free on CE. just search the forums. banning for this is just stupid. You lose colleges, and ISPs like AOL.

Posted

Re: Auto ban mod [V2]

yea blocking seams berrer then banning plus it will be simpler all you have to do is add this to the header file so users can NOT to interact with each other.

this will select the last login ONLY so it only works if they are both on the same ip.

$otheruser1 = array ($r['userid'], $u, $user, $userid /* other varables that = other persons userid go here */);
$otherusers = $db->query('SELECT lastlogin FROM users WHERE userid=$otheruser1');
if ($ir['lastlogin'] == $otheruser) {
echo 'You re trading with someone on the same IP! please contact an admin if you think this is a mistake';
$h->endpage();
EXIT;
}

plus this may not work as i have not tested it

Posted

Re: Auto ban mod [V2]

would be something like like this..

and it would go in the itemsend files.. cashsend.. Not the header.

 

$get_ip_check = sprintf("SELECT lastlogin, lastip FROM users WHERE userid = %u",abs(@intval($_GET['ID'])));
$do_ip_check = $db->query($get_ip_check);
if($db->num_rows($do_ip_check) > 0)
{
die("No");
}

 

Only posting cuase you did :)....ANd you can extend it. to include more than just lastlogin IP.

But I would defently put in itemsend, cashsend, etc, Not the header.php. You want to keep stuff out of header.php. and globals.php that is not really needed all the time becuase it will slow your site down.

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.   Paste as plain text instead

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