[PHP question] accounts/IP limit?

10/16/2011 23:36 18andLife#1
How can I make that people can register only X accounts per IP address?

Because some faggot registered over 400k accounts on my server
10/16/2011 23:43 PortalDark#2
first, you could run a script to ban all same ip accounts
second, there are proxies(thats why first point)
third, google of it, ill post if i find

Edit: try editing reg to check on ips already on server, if ip is duplicated, dont let them register

[Only registered and activated users can see links. Click Here To Register...]
10/17/2011 01:52 LastThief#3
Quote:
Originally Posted by PortalDark View Post
first, you could run a script to ban all same ip accounts
second, there are proxies(thats why first point)
third, google of it, ill post if i find

Edit: try editing reg to check on ips already on server, if ip is duplicated, dont let them register

[Only registered and activated users can see links. Click Here To Register...]
i can edit my ip to bypass that thing

anyways if i succeeded to make it i'll share it because some of servers that i'm apart of it requested it
10/17/2011 03:34 r7slayer#4
Quote:
Originally Posted by 18andLife View Post
How can I make that people can register only X accounts per IP address?

Because some faggot registered over 400k accounts on my server
Set it so only so many accounts can be registerd on a ip, and dunno if its possible but change the daily limit of how many accounts can be made in a day.

Also on your server make an ip limit like 3 accounts can loggin per ip or w/e
Then it shouldnt matter too much.
10/17/2011 03:45 PortalDark#5
Quote:
Originally Posted by r7slayer View Post
Set it so only so many accounts can be registerd on a ip, and dunno if its possible but change the daily limit of how many accounts can be made in a day.

Also on your server make an ip limit like 3 accounts can loggin per ip or w/e
Then it shouldnt matter too much.
once again, proxies make all this become useless, but since some kids doenst know how to use them, maybe it massive reg will drop a bit
10/17/2011 09:55 Y@$$ER LOTFY#6
I think email verification will make good sense in this :D
10/17/2011 11:28 LastThief#7
Quote:
Originally Posted by Y@$$ER LOTFY View Post
I think email verification will make good sense in this :D
unfortunately i can't get access to yahoo mail that means when i try to send email with mail function yahoo include it under spam messages and doesn't send it and that's ridiculous '-' imma still figuring out how to get this thing working
10/17/2011 11:36 Dr.Abdelfattah#8
Quote:
Originally Posted by LastThief View Post
unfortunately i can't get access to yahoo mail that means when i try to send email with mail function yahoo include it under spam messages and doesn't send it and that's ridiculous '-' imma still figuring out how to get this thing working
it's ur problem in setup smtp server (it's a very Sensitive) so any mistake u will get a bann ip of sending messages as u are SPAM
aynway if u use something like plesk panel it will be more easyer , it do every thing in configuration smtp server so u will not get bann ip anymore
or search for guides about setup ur smtp with a right way or if u buy a server from datacenter ask them to setup smtp server for u :)
10/17/2011 19:52 [Snow]#9
just put a check like account check to see if you aready have this IP in your database.

$select_user_result = $ipcheck->query("SELECT * FROM _user WHERE `reg_ip`='".$_SERVER[REMOTE_ADDR]."' LIMIT 5");
10/17/2011 20:03 Nezekan#10
just add a captcha, registering ips isn't bad but it ain't a full solution either
10/17/2011 20:08 PortalDark#11
Quote:
Originally Posted by Nezekan View Post
just add a captcha, registering ips isn't bad but it ain't a full solution either
captcha
email not duplicated
and ip can help
10/17/2011 20:10 bahaa12#12
hello i got that answer from ThElitEyeS
use his reg page or any reg page insert the ip into the database
and use this at login

@$ip = $_SERVER['REMOTE_ADDR'];

$ query = mysql_query("SELECT * FROM TB_User WHERE reg_ip='$ip'");
$ip_check = mysql_num_rows ($query);
if($ip_check != 0){
echo "sorry you can reg 1 acc by ip";
return;
}
10/17/2011 20:21 Dr.Abdelfattah#13
Quote:
Originally Posted by bahaa12 View Post
hello i got that answer from ThElitEyeS
use his reg page or any reg page insert the ip into the database
and use this at login

@$ip = $_SERVER['REMOTE_ADDR'];

$ query = mysql_query("SELECT * FROM TB_User WHERE reg_ip='$ip'");
$ip_check = mysql_num_rows ($query);
if($ip_check != 0){
echo "sorry you can reg 1 acc by ip";
return;
}
hmm (mysql) ?!
---------------
Edit:
it must be

Quote:
@$ip = $_SERVER['REMOTE_ADDR'];

$ query = mssql_query("SELECT * FROM TB_User WHERE reg_ip='$ip'");
$ip_check = mssql_num_rows ($query);
if($ip_check != 0){
echo "sorry you can reg 1 acc by ip";
return;
}
but i think it seems to me wrong :D !

or maybe that's better !
Quote:
@$ip = $_SERVER['REMOTE_ADDR'];

$ query = mssql_query("select * from TB_User where reg_ip='$ip'");
$ip_check = mssql_num_rows ($query);
if($ip_check != 0){
echo "sorry you can reg 1 acc by ip";
return;
}
10/17/2011 20:59 18andLife#14
Nvm lol i just added a captcha, i didnt even think about captcha lol
10/17/2011 21:10 PortalDark#15
Quote:
Originally Posted by 18andLife View Post
Nvm lol i just added a captcha, i didnt even think about captcha lol
try making ppl only able to reg using email, but only 1 email per account