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)

smdani 10-16-2005 07:27 PM

Two both variables take IP and his DNS name. How can I take only IP number?
I want to generate a link like this below IP Address:
http://ws.arin.net/cgi-bin/whois.pl?...=200.96.73.211

I did it modifying the phrase thread_displayproxyip, and writing:
Code:

<a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput={1}">IP - Query WHOIS ARIN <br>
but generates a bad URL:
http://ws.arin.net/cgi-bin/whois.pl?...P.rima-tde.net

FROGGYJ 10-16-2005 09:38 PM

hrm do we have to update all threads or anything? cause I installed fine, but ummm nothing has changed when I click on reveal IP.

Paul M 10-16-2005 10:14 PM

Quote:

Originally Posted by smdani
Two both variables take IP and his DNS name. How can I take only IP number?

You can't unless you modify the code.

Quote:

Originally Posted by FROGGYJ
hrm do we have to update all threads or anything? cause I installed fine, but ummm nothing has changed when I click on reveal IP.

Nothing will change unless a proxy is detected at the time of posting, then the ip icon will be red and the extra details will be displayed if you click it.

It is not (and cannot ever be) retrospective.

akanevsky 10-16-2005 10:25 PM

Isn't proxy detection a standard in vB 3.5?
I thought I saw something like that in the source code of the freshly downloaded package.

EDIT: Yes, it is, and your hack says to replace some of that.
What is the difference between your detection and vB's detection?

EDIT: lol...
Quote:

define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS)); // this should *never* change during a session
USER AGENT never change? I don't think so. Both IPADDRESS and USER AGENT can be changed in Opera without restarting the brower :P

Paul M 10-17-2005 03:34 AM

Quote:

Originally Posted by Dark Visor
Isn't proxy detection a standard in vB 3.5?

No.

Nowhere in a default vb installation will you be able to see if a person is using a proxy server, or do anything with (or even know) their real ip address.

Quote:

Originally Posted by Dark Visor
EDIT: Yes, it is, and your hack says to replace some of that.
What is the difference between your detection and vB's detection?

That code (which btw is in all 3.0.x versions as well) attempts to detect the real ip (as ALT_IP) for the session hash, and that's it. It does absolutely nothing else with it whatsoever.

Quote:

Originally Posted by Dark Visor
EDIT: lol...

USER AGENT never change? I don't think so. Both IPADDRESS and USER AGENT can be changed in Opera without restarting the brower :P

Not really sure what your point is, that's a Jelsoft comment, not mine. I'd like to know how you change your ip address via a browser .......

akanevsky 10-17-2005 05:45 PM

Quote:

That code (which btw is in all 3.0.x versions as well) attempts to detect the real ip (as ALT_IP) for the session hash, and that's it. It does absolutely nothing else with it whatsoever.
I understand. And what is the reason you added another constant?

Quote:

Not really sure what your point is, that's a Jelsoft comment, not mine. I'd like to know how you change your ip address via a browser .......
I know. Lol was directed at Jelsoft; IP can be changed via proxy that is specified within a browser.

smdani 10-18-2005 07:24 AM

Quote:

Quote:

Originally Posted by smdani
Two both variables take IP and his DNS name. How can I take only IP number?
You can't unless you modify the code.
I'm thinking to define a new variable and save only the ip number. How can I do it?
Paul, may you help me?

slowhand.chen 10-22-2005 12:41 PM

use https connect vbb,the real ip can't not logged。

Paul M 10-22-2005 04:03 PM

Quote:

Originally Posted by smdani
I'm thinking to define a new variable and save only the ip number. How can I do it?
Paul, may you help me?

The link you use will work fine as it is, ARIN picks out the IP address and ignores the rest - the example you gave does not work because the 200.x x x range is not controlled by ARIN, it's controlled by LACNIC

exceem 10-27-2005 04:52 PM

installed and working great, excelent hack :)

this should be a feature of vbulletin!


All times are GMT. The time now is 03:02 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.02458 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
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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