testaaja69_
New Member
- Feb 9, 2018
- 18
- 3
I am using PlusEmu R2 & BrainCMS 1.8.1.
Stops idiots doing it. Also makes it harder for people to do it.Limiting IPs on registration is quite useless nowadays because the user can just easily use a VPN or change their IP address.
Even if you add cookie checks, the user can just use a different browser or clear their cookies, lol.
Would this even work? 10minute email or w/e.Stops idiots doing it. Also makes it harder for people to do it.
The only way to stop this stuff from happening would be email validation or making the user x amount of minutes/hours old before they can trade.
You can disable trading on new accounts until they're 1 hour old or something. Can also make it so they have to validate their email before they can trade.Would this even work? 10minute email or w/e.
ah right.You can disable trading on new accounts until they're 1 hour old or something. Can also make it so they have to validate their email before they can trade.
I wouldn't recommend these on small hotels though, pisses people off.
public static function ipTaken($username)
{
global $dbh;
$stmt = $dbh->prepare("SELECT ip_last,ip_reg FROM users WHERE ip_last = :ip OR ip_reg = :ip LIMIT 1");
$stmt->bindParam(':ip', $_SERVER['REMOTE_ADDR']);
$stmt->execute();
if ($stmt->RowCount() > 0)
{
return true;
}
else
{
return false;
}
}
if (!self::ipTaken($_POST['username']))
{
}
else
{
echo 'used_ip';
return;
}
/*
Functions list Class User.
---------------
checkUser();
hashed();
validName();
userData();
emailTaken();
userTaken();
ipTaken();
refUser();
login();
register();
userRefClaim();
editPassword();
editEmail();
editHotelSettings();
editUsername();
*/
Limiting IPs on registration is quite useless nowadays because the user can just easily use a VPN or change their IP address.
Even if you add cookie checks, the user can just use a different browser or clear their cookies, lol.
To actually restrict per IP, you should disallow the usage of VPNs otherwise people will just mask their IP that way.Stops idiots doing it. Also makes it harder for people to do it.
The only way to stop this stuff from happening would be email validation or making the user x amount of minutes/hours old before they can trade.