Welcome, Guest. Please Login or Register.
April 25, 2024, 02:27:23 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [CODE] (COMPLETED) Show Real IP ;) **UPDATED** « previous next »
Pages: [1] 2 3 4 Reply Ignore Print
Author Topic: [CODE] (COMPLETED) Show Real IP ;) **UPDATED**  (Read 38331 times)
sylvester
YaBB God
*****
Posts: 525


[CODE] (COMPLETED) Show Real IP ;) **UPDATED**
« on: June 07, 2002, 04:13:48 PM »
Reply with quote

If you want to ban a forum-user, but he is behind a proxy-server, you must ban all users who use that proxy server....BUT, I've solved that problem (as far as I know)

Go to your Index.php (of your yabbse board ofcourse).
<id>
Show Real IP
</id>

<version>
1.3
</version>

<author>
sylvester
[email protected]
</author>

<mod info>
If your user is behind a proxy-server, you will get the IP-address which he/she got from his/her ISP

Update: It will also look for $HTTP_X_FORWARDED_FOR
It's YaBBse v 1.3.x compatible
</mod info>

<edit file>
index.php
</edit file>

<search for>
error_reporting (E_ALL ^ E_NOTICE);
</search for>

<add after>
$REMOTE_ADDR = ($HTTP_X_FORWARDED_FOR != "") ? $HTTP_X_FORWARDED_FOR: $REMOTE_ADDR;
$REMOTE_ADDR = ($HTTP_CLIENT_IP != "") ? $HTTP_CLIENT_IP: $REMOTE_ADDR;
</add after>

if the user has a 'second IP', the 'first IP' changes in the 'second IP' ;)

it worked for me.
« Last Edit: July 07, 2002, 03:33:04 PM by sylvester » Logged

I'm back
Boudewijn
Noobie
*
Posts: 14


Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #1 on: June 07, 2002, 07:36:13 PM »
Reply with quote

 ::) hmm.. Sylvester nu maar hier posten?  :-\

(Sorry, i talk dutch to him.  :P)

I don't no of it works.. how I test it?
Logged

Well know of YaBB.nl.. :)
sylvester
YaBB God
*****
Posts: 525


Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #2 on: June 07, 2002, 07:50:28 PM »
Reply with quote

Quote from: Boudewijn on June 07, 2002, 07:36:13 PMI don't no of it works.. how I test it?
use a proxy server. go to your board before you install this 'mod'. post something. your IP will be shown on the post. install this 'mod'. post something on your board, and look to your IP, is that your Proxy-server's, or your ISP's? (Hint: your ISP's ;))
Logged

I'm back
iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #3 on: June 07, 2002, 09:55:17 PM »
Reply with quote

does this help single out users using AOL?
Logged

sylvester
YaBB God
*****
Posts: 525


Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #4 on: June 07, 2002, 10:44:00 PM »
Reply with quote

Quote from: iamdamnsam on June 07, 2002, 09:55:17 PMdoes this help single out users using AOL?
I don't know. anything i can say: just try it ;)
php has one good thing: your real ip is ALWAYS visible, but not always with the same 'string' ;)

if your client has "two IP's", so if he/she has a proxyserver, this script will fish out the REAL ip, so you haven't to ban a proxy-server ;).
sorry for my bad english, i'm a dutch-boy ;) ;D
Logged

I'm back
iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #5 on: June 07, 2002, 10:54:30 PM »
Reply with quote

by real ip address, do you mean one that is on the computer?  So if this person has dial-up, will their real ip address always be the same?
Logged

Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #6 on: June 07, 2002, 11:04:11 PM »
Reply with quote

Only inktomi webcaches use http_client_ip most caches, squid and netapps, use HTTP_X_FORWARDED_FOR so you need to check for that too
Logged
sylvester
YaBB God
*****
Posts: 525


Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #7 on: July 04, 2002, 06:41:53 AM »
Reply with quote

Quote from: iamdamnsam on June 07, 2002, 10:54:30 PMby real ip address, do you mean one that is on the computer?  So if this person has dial-up, will their real ip address always be the same?
no, if I am behind a proxy server, you will see the IP address which I got from my ISP
Logged

I'm back
babi-rhino
Noobie
*
Posts: 14


I'm a what?

Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #8 on: July 04, 2002, 12:19:20 PM »
Reply with quote

Trying to ban people using IP is a nightmare... If I did it I'll probably ban everyone including myself... :D

Not enough ISP's... too many people using the same!
Logged
Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #9 on: July 04, 2002, 04:45:48 PM »
Reply with quote

i can't find that code in index.php ???
Logged

Iridium
Full Member
***
Posts: 173


I'm a llama!

Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #10 on: July 04, 2002, 07:38:03 PM »
Reply with quote

What about anonymizing proxies that don't pass the client's actual IP?
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #11 on: July 04, 2002, 08:02:33 PM »
Reply with quote

Does it work with multi-level proxies? Or web based proxies such as nph-proxy.pl or Anonymizer.com? Just asking, that's all...
Logged
sylvester
YaBB God
*****
Posts: 525


Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #12 on: July 04, 2002, 09:06:28 PM »
Reply with quote

Quote from: Mach8 on July 04, 2002, 08:02:33 PMDoes it work with multi-level proxies? Or web based proxies such as nph-proxy.pl or Anonymizer.com? Just asking, that's all...
just try it :)
Logged

I'm back
sylvester
YaBB God
*****
Posts: 525


Re:[CODE] (COMPLETED) Show Real IP ;) *UPDATED*
« Reply #13 on: July 05, 2002, 07:35:28 AM »
Reply with quote

this 'mod' has been updated. it also looks for the $HTTP_X_FORWARDED_FOR environment variable.
Logged

I'm back
Ally6
Jr. Member
**
Posts: 70


I'm a llama.......watch it i spit!

Re:[CODE] (COMPLETED) Show Real IP ;) *UPDATED*
« Reply #14 on: July 05, 2002, 11:39:46 PM »
Reply with quote

doesn't work for aol users  :-\
Logged
Pages: [1] 2 3 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [CODE] (COMPLETED) Show Real IP ;) **UPDATED** « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.018 seconds with 20 queries.