Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 22nd January 2021, 18:07
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default 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:
$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 = "<b>(<font color=red>Warning :</font> <a href=usersearch.php?ip=$ipcheck>This IP is used by $ipuse users!</a>)</b>";
}
}

$whoisurl = "http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchte xt=$ip";
if ($addr)
print("<tr><td class=rowhead>IP Adress</td><td align=left><a target=_blank href=$whoisurl>$addr</a>&nbsp;$use</td></tr>\n");
Reply With Quote
  #2  
Old 22nd January 2021, 18:12
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
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.
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #3  
Old 22nd January 2021, 18:19
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
I just need something if use double to disabled in browse, is there any code
Reply With Quote
  #4  
Old 22nd January 2021, 18:28
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
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
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)

Last edited by DND; 22nd January 2021 at 18:58.
Reply With Quote
  #5  
Old 22nd January 2021, 19:19
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
You have some clever idea, i don't know why then that code to check in userdetails
Reply With Quote
  #6  
Old 23rd January 2021, 01:19
darkalchemy darkalchemy is offline
Administrator
 
Join Date: Dec 2017
United States
Posts: 101
Default
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.
Reply With Quote
  #7  
Old 29th January 2021, 00:13
HDVinnie's Avatar
HDVinnie HDVinnie is offline
BluCrew
 
Join Date: Dec 2014
P2P
Posts: 140
Default
Stop logging your users IPs just to catch a few cheaters......
__________________
Founder Of UNIT3D
Reply With Quote
  #8  
Old 29th January 2021, 05:35
darkalchemy darkalchemy is offline
Administrator
 
Join Date: Dec 2017
United States
Posts: 101
Default
Quote:
Originally Posted by HDVinnie View Post
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.
Reply With Quote
The Following User Says Thank You to darkalchemy For This Useful Post:
HDVinnie (30th January 2021)
  #9  
Old 30th January 2021, 20:16
HDVinnie's Avatar
HDVinnie HDVinnie is offline
BluCrew
 
Join Date: Dec 2014
P2P
Posts: 140
Default
Quote:
Originally Posted by darkalchemy View Post
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.
__________________
Founder Of UNIT3D
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:44. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.