Welcome, Guest. Please Login or Register.
November 25, 2017, 12:46:22 AM
Home Help Search Login Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [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 19372 times)
sylvester
YaBB God
*****
Posts: 525



[CODE] (COMPLETED) Show Real IP ;) **UPDATED**
« on: June 07, 2002, 11:13:48 AM »
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).
Code: [Select]
<id>
Show Real IP
</id>

<version>
1.3
</version>

<author>
sylvester
webmaster@computerfreakz.net
</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, 10:33:04 AM by sylvester » Logged

I'm back
Boudewijn
Noobie
*
Posts: 14



Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #1 on: June 07, 2002, 02: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, 02:50:28 PM »
Reply with quote


I 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, 04:55:17 PM »
Reply with quote

does this help single out users using AOL?
Logged

RamchargerCentral.Com
http://ramchargercentral.com
sylvester
YaBB God
*****
Posts: 525



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


does 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, 05: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

RamchargerCentral.Com
http://ramchargercentral.com
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, 06: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, 01:41:53 AM »
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?

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, 07:19:20 AM »
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


WWW
Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #9 on: July 04, 2002, 11:45:48 AM »
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, 02: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



Re:[CODE] (COMPLETED) Show Real IP ;)
« Reply #11 on: July 04, 2002, 03: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, 04:06:28 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...

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, 02: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, 06: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  |  Topic: [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.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.042 seconds with 19 queries.