Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Anti Double Account (http://www.bvlist.com/showthread.php?t=12329)

elvira 22nd January 2021 18:07

Anti Double Account
 
Hey all,

one question.

These code show in userdetails, how many account, have this IP, so how use something like this in browse to prevent use download torrents if user used double account

Quote:
\n");

$ipto = mysql_query("SELECT COUNT(id) FROM `users` AS iplist WHERE `ip` = '" . $user["ip"] . "'") or sqlerr(__FILE__, __LINE__);
$row12 = mysql_fetch_row($ipto);
$ipuse = $row12[0];

if ($ipuse == 1)
{
$use = "";

} else
if (get_user_class() >= UC_MODERATOR) {
{
$ipcheck=$user["ip"];
$use = "(Warning : This IP is used by $ipuse users!)";
}
}

$whoisurl = "http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchtext=$ip";
if ($addr)
print("
IP Adress$addr $use

DND 22nd January 2021 18:12

you realize that many people use VPN(shared) and have the same ip of the VPN..
restricting this will be the end of any website.

elvira 22nd January 2021 18:19

I just need something if use double to disabled in browse, is there any code

DND 22nd January 2021 18:28

from what i know it isnt any code that will restrict your access(on download or torrents page) if your ip is used on multiple accounts(shared or not) but as everything..it could be made

elvira 22nd January 2021 19:19

You have some clever idea, i don't know why then that code to check in userdetails

darkalchemy 23rd January 2021 01:19

People spend too much time worrying about the cheaters. Its nearly impossible to stop them, anyway.

My opinion is focus on what you can control, like the UX, the UI and the content.

Just an opinion, so don't blast me.


But, something as simple as
Code:

select count(id) from ips where ip = $CURUSER['ip']
If (count > 1) die();

This is basic and pretty simplistic but it should give you an idea of how to do it.

HDVinnie 29th January 2021 00:13

Stop logging your users IPs just to catch a few cheaters......

darkalchemy 29th January 2021 05:35

Quote:

Originally Posted by HDVinnie (Post 55291)
Stop logging your users IPs just to catch a few cheaters......

If you don't log the ip, there is no record of the ip to surrender to the authorities if/when you get busted.

Several articles on that very thing recently.

There is no valid reason to store the ip anywhere else on the site, login, forums, etc.
If you use php, learn to cache(memcached not redis) the peer data instead of storing peers in the db.
If you use XBT, it doesn't log the ip unless you modified it to do so.

HDVinnie 30th January 2021 20:16

Quote:

Originally Posted by darkalchemy (Post 55292)
If you don't log the ip, there is no record of the ip to surrender to the authorities if/when you get busted.

Several articles on that very thing recently.

There is no valid reason to store the ip anywhere else on the site, login, forums, etc.
If you use php, learn to cache(memcached not redis) the peer data instead of storing peers in the db.
If you use XBT, it doesn't log the ip unless you modified it to do so.

This is true....but sadly there are many codebases and sysops that dont care are log there users IP, Browsers, fingerprints, etc. I wish ppl would wake up. Its not worth it to catch some cheaters.

Also I guarantee majority here running a tracker with NGINX are using the default NGINX access log format and are logging IPs there too. Instead of disabling the access log or changing the default format of it.


All times are GMT +2. The time now is 19:10.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.