vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Use real ip when proxy server is detected. (https://vborg.vbsupport.ru/showthread.php?t=95198)

Paul M 12-10-2005 04:19 PM

Quote:

Originally Posted by Rukas
Ive upgraded to 3.5.2, done the file edits, uninstalled and re installed and it doesnt seem to be working. Hmmm... Ill try again tomorrow morning but it doesnt appear to work anymore :(

Works fine on 3.5.2.

Rukas 12-10-2005 11:15 PM

So what is the process you recommend I do, uninstall and start from scartch?

Paul M 12-11-2005 01:40 AM

You can try that - You don't actually say what does/doesn't happen.

Ramsesx 12-14-2005 04:45 PM

Seems this hack is overwriting the ipInfo -- Extra user IP information?

Paul M 12-14-2005 05:23 PM

Quote:

Originally Posted by Ramsesx
Seems this hack is overwriting the ipInfo -- Extra user IP information?

Well you could always read post #111 in that thread. :)

Ramsesx 12-15-2005 07:27 AM

Quote:

Originally Posted by Paul M
Well you could always read post #111 in that thread. :)

Hm, don't know exactly what you mean?
Post #111
Quote:

Originally Posted by Paul M
Well I've looked at the 3.5.2 code and it's the same - all the edits are there as specified.

I have 3.5.0

Paul M 12-15-2005 07:41 AM

Quote:

Originally Posted by Ramsesx
Hm, don't know exactly what you mean?
Post #111

Post number 111 in that thread (every post has a number, top right of the post ....)

Quote:

Originally Posted by Ramsesx
I have 3.5.0

This is for any 3.5 version.

Ramsesx 12-15-2005 08:03 AM

Ah, now understand, you meant the post in the other thread, thanks for it now it is working fine.

Bulent Tekcan 12-15-2005 05:49 PM

I think not working together :(

WNxWakko 12-17-2005 09:53 PM

I am confused. You have two sets of instructions and 2 xml files.

Proxy-to-real-ip
and
Proxy-to-real-ip-product

Which do I use?

Paul M 12-17-2005 09:59 PM

Quote:

Originally Posted by WNxWakko
I am confused. You have two sets of instructions and 2 xml files.

eh ?? Where are there two sets, certainly not in the zip ....

Paul M 12-17-2005 10:00 PM

Quote:

Originally Posted by Bulent Tekcan
I think not working together :(

Is it me or are the posts in here getting a bit vague and cryptic. I have no idea what you mean.

WNxWakko 12-17-2005 10:10 PM

ya i had the old and new, unzipped into the old.

Ok new problem, when I import the product, the meter bar that runs while its installing, just keeps growing bigger and bigger way off the screen. It wont stop, just keeps going.

WNxWakko 12-17-2005 10:14 PM

Fixed my error.


Ok this mod seems to have knocked out my other IP mod,

ipInfo -- Extra user IP information
https://vborg.vbsupport.ru/showthread.php?t=96834

Paul M 12-17-2005 11:05 PM

Try reading the previous 20 or so posts. ;)

BiReL41r 12-18-2005 11:54 AM

Great hack, installed.

harry1951 12-18-2005 05:49 PM

*clicks install*

Ramsesx 12-21-2005 05:45 AM

I don't know if this problem is from this hack, but in my vba links directory posts there are the ipx and ip.gif visible for everybody.

Paul M 12-21-2005 08:26 AM

No idea, I don't use vba so I can't say how it will affect it.

The Ottoman 12-23-2005 02:17 PM

Is there any way to add this info to the Who's Online page?

I have a guest displaying 127.0.0.1 and I know it's not me.

Paul M 12-23-2005 06:59 PM

not really sure what you mean, who's online already shows ip addresses.

The Ottoman 12-23-2005 10:55 PM

Quote:

Originally Posted by Paul M
not really sure what you mean, who's online already shows ip addresses.

If a user is using a proxy, the Proxy IP is what is shown, especially for guests lurking. Your hack only works if people post, not lurk.

Paul M 12-23-2005 11:45 PM

Quote:

Originally Posted by The Ottoman
If a user is using a proxy, the Proxy IP is what is shown, especially for guests lurking.

Erm, no it isn't, if a real ip is detected, then it is shown. Try reading the description .....

Quote:

This hack makes the forum always use the members real ip when a proxy is detected, meaning that all existing ip functions should continue to work, basically ignoring the proxy server (other than recording it's presence).

i.e.

* The real ip (or host) is displayed in the who's online page.

* The real and proxy server ip's are accesible for each post, the button is red for members using a proxy server.

* The real ip is searchable in the admin/mod cp (but not the proxy ip).

* The real ip can be banned by admins.

etc etc ......


The Ottoman 12-28-2005 12:13 AM

Quote:

Originally Posted by Paul M
Erm, no it isn't, if a real ip is detected, then it is shown. Try reading the description .....

Correct...this is what is done (and most excellently, I might add) for members. However, it *doesn't* work for Guests.

I've attached a picture to make myself a bit more clear:

https://vborg.vbsupport.ru/external/2005/12/3.jpg

Paul M 12-28-2005 11:40 AM

Whatever that Guest is - it is (incorrectly) passing on 127.0.0.1 as it's "real" address, so the hack is (correctly) displaying it. There is a setting to tell the hack to ignore any real ip's that are in the private ranges (such as this one) - but you need to edit this setting in the hack code itself ;

in class_core.php find ;

PHP Code:

        $ignoreprivate false// Set to true to ignore private 'real' ip's // 

and change it to ;

PHP Code:

        $ignoreprivate true// Set to true to ignore private 'real' ip's // 


lazytown 12-31-2005 12:29 AM

I've done everything correct, but when I try to import the product it gives me a blank page (within the frameset). Any ideas?

Thanks -vissa

lazytown 12-31-2005 12:35 AM

nevermind I just had to wait long enough.. However, I have another question.

Does this work with the
ipinfo mod below?
https://vborg.vbsupport.ru/showthrea...ghlight=ipinfo

Thanks -vissa

Paul M 12-31-2005 01:11 AM

If you read the thread for that hack you will find out (go back a page or two).

firstrebel 12-31-2005 09:26 AM

*clicks install*

Bob

akanevsky 12-31-2005 11:41 AM

Paul...
There isn't a big difference between default fetch_alt_ip and yours.
Except yours never returns REMOTE_ADDR as alt_ip. But that's just one line of code, yet you change the whole function... why?

All you need to do is change:
$alt_ip = $_SERVER['REMOTE_ADDR'];
to
$alt_ip = $_SERVER['HTTP_FORWARDED'];
Tell me if I am wrong. ;)

Secondly, what's the need for defining PROXYIP? There is a constant ALT_IP, why not use that?

Interstinly enough, vB does not use ALT_IP at all ;)

I would do it like this:

Paul M 12-31-2005 04:20 PM

You're free to do what you want on your forum. ;)

If you check back, you will find that this evolved from another hack and was (I think) the first thing I did for vb [for 3.0.x] and while it may not be exactly how I would do it now, I'm happy with it as is - and see no reason to make wholesale changes now :)

akanevsky 12-31-2005 04:28 PM

ok..

lazytown 01-04-2006 12:15 PM

Ok so I have this installed with the extended IPinfo with the proper module disabled as posted. How do I know that this thing is actually working?

-vissa

The Ottoman 01-04-2006 04:53 PM

Quote:

Originally Posted by Paul M
Whatever that Guest is - it is (incorrectly) passing on 127.0.0.1 as it's "real" address, so the hack is (correctly) displaying it. There is a setting to tell the hack to ignore any real ip's that are in the private ranges (such as this one) - but you need to edit this setting in the hack code itself ;

in class_core.php find ;

PHP Code:

        $ignoreprivate false// Set to true to ignore private 'real' ip's // 

and change it to ;

PHP Code:

        $ignoreprivate true// Set to true to ignore private 'real' ip's // 


Disco!!!!

worked like a charm!!

lifesourcerec 01-05-2006 11:11 AM

Doesn't seem to work for me. Gives database error from time to time (connecting to MySQL):

Quote:

mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
includes/class_core.php on line 279

Paul M 01-05-2006 03:36 PM

That's a server error.

YLP1 01-13-2006 10:09 PM

I had the previous 3.0.7 version of this mod. I installed this one including updating the thread_displayproxyip phrase to:

The Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}

All changes were made and double checked in class_core.

Confirmed that I installed the xml.

This is what reports on the page after clicking the IP icon:

Code:

$postinfo[username]'s information stored for post: $postinfo[postid]
  • IP Address : $postinfo[ipaddress].

  • Host Address : $postinfo[hostaddress].

  • Alt IP Address : $postinfo[altip].

  • Alt Host Address : $postinfo[althostaddress].

  • User Agent : $postinfo[useragent].


Somehow I managed to mess this up but cannot find where because I confirmed all changes.

Please advise and thanks in advance.

Screen Shot:

Paul M 01-13-2006 11:17 PM

You appear to have customised the phrase in 3.0.7 and it's still trying to display that customised version.

YLP1 01-14-2006 08:55 PM

Quote:

Originally Posted by Paul M
You appear to have customised the phrase in 3.0.7 and it's still trying to display that customised version.

I double checked the phraise and it says: he Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}


Is this not correct? If not, what should it be?

Thanks in advance.

Paul M 01-14-2006 11:06 PM

Quote:

Originally Posted by YLP1
Is this not correct? If not, what should it be?

It *is* correct, but is not what is being displayed, you must have a language specific translation or something.


All times are GMT. The time now is 04:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01490 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete