Author |
Message |
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Tue Jul 20, 2010 9:35 pm Post subject: I want all registered users to see IP's |
|
|
Hi!
I want all registered users to see IP's.
I think it's in viewtopic.php, but I've looked around a few times and couldn't find the "hot spot". _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Wed Jul 21, 2010 12:34 am Post subject: Re: I want all registered users to see IP's |
|
|
Sylver Cheetah 53 wrote: | I want all registered users to see IP's. |
I would likely not do this if I were you. If you do want do go on with this, you should at least gives users the option to hide their IP address.
I don't think you're fully aware of the things people can do with those few numbers. |
|
Back to top |
|
|
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Wed Jul 21, 2010 7:24 am Post subject: Re: I want all registered users to see IP's |
|
|
Thank you for your kind advice. The thing is this: Now, my forum is mostly based on FIFA championship, wich is played by direct IP, so we have to give our IPs. But there are some nasty players who are took 2 or even 3 squads, posting from different accounts, but on the same ip. I can't verify all the time this thing, but if all users could see it, there would be some who would say to me who is cheating.
I know it is not very good to give up ip numbers, but the majority have dinamic ips. Also, like I was saying earlyier, we are forced to give our ip's or lese we can't play...
I'll open right now once again viewtopic.php and if I find what I'm looking for, I'll post it here, if maybe someone else wants it... _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
Posted: Wed Jul 21, 2010 1:28 pm Post subject: Re: I want all registered users to see IP's |
|
|
I don't recommend it either, but since you're aware of it and your users are giving their IPs away anyway, you'd be looking at these lines:
CHANGE THIS
Code: | if ( $is_auth['auth_mod'] )
{
$temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id'];
$ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';
$ip = '<a href="' . $temp_url . '">' . $lang['View_IP'] . '</a>';
$temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
$delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
$delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
}
else
{
$ip_img = '';
$ip = '';
if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] )
{
$temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
$delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
$delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
}
else
{
$delpost_img = '';
$delpost = '';
}
} |
TO THIS
Code: | $temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id'];
$ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';
$ip = '<a href="' . $temp_url . '">' . $lang['View_IP'] . '</a>';
if ( $is_auth['auth_mod'] )
{
$temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
$delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
$delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
}
else
{
if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] )
{
$temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
$delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
$delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
}
else
{
$delpost_img = '';
$delpost = '';
}
} |
That's where your start; I haven't tested it but it makes sense. I would however at least add a condition to check if the user is logged in, something like
Code: | if ( $userdata['user_id'] == ANONYMOUS )
{
$ip_img = '';
$ip = '';
}
else
{
$temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id'];
$ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';
$ip = '<a href="' . $temp_url . '">' . $lang['View_IP'] . '</a>';
}
if ( $is_auth['auth_mod'] )
...... |
But non-mods still won't be allowed in modcp.php. How you deal with that is up to you: change how the authentication is done in modcp, create a separate page for IP using modcp's "ip" case, with its own template and without forgetting to change the link in viewtopic, etc.
I will add this, however: Your players can still cheat easily. Since they already go through the trouble of logging from multiple accounts, they can just keep doing that while staying behind a different proxy for each. They will be using different accounts from different IPs, so your problem won't be solved and your users' IPs will be exposed. |
|
Back to top |
|
|
lumpy burgertushie Board Member
Joined: 18 Nov 2008
Posts: 266
|
Posted: Thu Jul 22, 2010 12:37 am Post subject: Re: I want all registered users to see IP's |
|
|
wow, I never thought I would see this request. I spend a lot of time telling people to stop worrying about who sees what IP.
The only thing you can find out from an IP address is the town and ISP.
and quite often that is not even correct.
right now, if I go to some of the sites that check the IP I am coming from, it shows a town that is a about 150 miles from me.
like you said, most of your users have dynamic IPs so how can you use that for a way to keep track of anything to start with.
robert |
|
Back to top |
|
|
Citrix Board Member
Joined: 19 Feb 2012
Posts: 42
|
Posted: Thu Feb 23, 2012 12:56 pm Post subject: Re: I want all registered users to see IP's |
|
|
Sylver Cheetah 53 wrote: | Hi!
I want all registered users to see IP's.
I think it's in viewtopic.php, but I've looked around a few times and couldn't find the "hot spot". | This is not a good idea.
A hacker can register to your site, then he can see all the IPs. Why do you want to make it easier for him to harrass your members? |
|
Back to top |
|
|
lumpy burgertushie Board Member
Joined: 18 Nov 2008
Posts: 266
|
Posted: Fri Mar 09, 2012 7:09 pm Post subject: Re: I want all registered users to see IP's |
|
|
Citrix wrote: | Sylver Cheetah 53 wrote: | Hi!
I want all registered users to see IP's.
I think it's in viewtopic.php, but I've looked around a few times and couldn't find the "hot spot". | This is not a good idea.
A hacker can register to your site, then he can see all the IPs. Why do you want to make it easier for him to harrass your members? |
curious how you think someone can harrass someone by knowing their IP ( at the time of posting)?
my current IP is 184.79.97.18
what can you do with that? can you find me? or anything at all about me?
robert |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Sat Mar 10, 2012 3:17 pm Post subject: Re: I want all registered users to see IP's |
|
|
Only that you live just off Rankin Highway in the City of Midland.
Jim |
|
Back to top |
|
|
lumpy burgertushie Board Member
Joined: 18 Nov 2008
Posts: 266
|
Posted: Fri Mar 16, 2012 8:49 pm Post subject: Re: I want all registered users to see IP's |
|
|
see that is what I mean, I do not live anywhere near midland texas, I live about 30 miles south of waco texas, out in the country.
but let's say that you could find what city and maybe even what street I live on with my IP, so what?
people just get to paranoid about this stuff. stop basing things on what you see on tv.
for instance, they still show the cops trying to make people stay on the phone for extended periods of time so they can trace the call.
ever hear of 911? when you call 911 they know exactly where you are instantly. if you are calling from a cell phone they may not know exactly but they will know within a very small area instantly.
there I go on my soapbox again.
Image link
robert |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Thu Jan 17, 2013 3:40 am Post subject: Re: I want all registered users to see IP's |
|
|
Personally I would edit it directly in the database as I would with any item in the config.
Jim |
|
Back to top |
|
|
|