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-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:


All times are GMT. The time now is 01:06 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.01418 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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