Auto Composing tool

03/15/2009 23:41 forcer#16
Quote:
Originally Posted by zuikislol View Post
forcer, so you are saying that if i put 1 into the online column for the account i want to bann, they wont be able to logg into my server with that account? but this suggestion of yours, will they be able to logg in if they make another account?
never tried to make new account, however you can include ip filter to your register script aswell, not so hard really.
and how many times do you think they will try to make new account until they dump it?
03/15/2009 23:57 dani-filth0#17
sr for off topic , but do any one know , how can i know who is online in the server while its running not the number
03/16/2009 00:21 zuikislol#18
Forcer, i know you'rew busy guy, but the thing is that i dont really know how to make that register page ip filter, can you talk me thrugh it please? you can do it here or if you dont want anyone else to know about it could you please send it to me in a private message?
03/16/2009 03:06 raptor4life#19
hey boss just wondering is the server open right now because i cant seem to connect to the server or webby
03/16/2009 08:45 zuikislol#20
server was down because of my host, the server is back online now.
03/16/2009 09:46 forcer#21
Quote:
Originally Posted by zuikislol View Post
Forcer, i know you'rew busy guy, but the thing is that i dont really know how to make that register page ip filter, can you talk me thrugh it please? you can do it here or if you dont want anyone else to know about it could you please send it to me in a private message?
[Only registered and activated users can see links. Click Here To Register...]
put this code at the beginning of the register script:
Code:
if(preg_match('/^192\.168\./i',$_SERVER['REMOTE_ADDR']) ) {
echo 'this IP is banned.';
}
this will ban all ip addresses from 192.168.0.0 to 192.168.255.255
03/16/2009 15:21 zuikislol#22
how about the ip addresses that are like this 200.171.224.41? will they be banned too?
03/16/2009 18:52 forcer#23
Code:
if(preg_match('/^200\.171\./i',$_SERVER['REMOTE_ADDR']) ) {
echo 'this IP is banned.';
exit;
}
this will ban 200.171.* ips.
NetRange: 200.0.0.0 - 200.255.255.255, this is ip range of mexico. for banning all ppl from mexico, you should use:
Code:
if(preg_match('/^200\./i',$_SERVER['REMOTE_ADDR']) ) {
echo 'this IP is banned.';
exit;
}
03/16/2009 19:20 revolution263#24
Well how can you relate the Characters to there accounts? I went to cq_user and found the player I wanted to ban, but don't know how to trace it to the account table. Help?
03/16/2009 19:25 forcer#25
Code:
select a.name,u.name 
from my.cq_user u, account.account a
where a.id = u.account_id and
u.name = 'UserName'
where UserName is name of the user you want to ban.
relation between cq_user and account tables are
account.id <==> cq_user.account_id
03/16/2009 19:28 revolution263#26
Thanks forcer.
03/16/2009 20:38 zuikislol#27
forcer, so if i would like to bann all the brazilian players from registering what Netrange do i use?
03/16/2009 21:31 forcer#28
[Only registered and activated users can see links. Click Here To Register...]
03/16/2009 21:51 zuikislol#29
thanks.
03/17/2009 06:53 szmexThebest#30
[Only registered and activated users can see links. Click Here To Register...]