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 10-06-2005 05:46 PM

Quote:

Originally Posted by memoriess
Because I'm trying to follow the instructions to convert proxy to ip.. Pls help.

There is no such instruction in this hack - it looks like something from the 3.0.x version, but even then it doesn't look quite right - however, please post your question in the correct thread.

dieselpowered 10-07-2005 05:49 AM

Umm installed...guess it is working? :)

Devil Woman 10-12-2005 06:15 PM

I have a slight problem I have gone to do this part

Quote:

Step 4.

In includes/functions_newpost.php

Find:

if ($vboptions['logip'])
{
$post['ipaddress'] = IPADDRESS;
}
else
{
$post['ipaddress'] = '';
}

Replace with:

// Paul M Proxy Hack v1.2
if ($vboptions['logip'])
{
$post['ipaddress'] = IPADDRESS;
$post['proxyip'] = PROXYIP;
}
else
{
$post['ipaddress'] = '';
$post['proxyip'] = '';
}
// End Proxy Hack
but I can not find anything that it asks me to find, please can anyone help

Paul M 10-12-2005 06:33 PM

Those instructions are part of the 3.0.x version, not the 3.5 version.

Devil Woman 10-12-2005 06:39 PM

So is there one for 3.5.0? If so where are the instructions for it?

Thanks for the help

Paul M 10-12-2005 06:51 PM

Um ... this is the 3.5 hack thread .......

Devil Woman 10-12-2005 06:57 PM

This was where I downloaded the file from to do the edits etc but I am having problems with step 4

Devil Woman 10-12-2005 06:59 PM

it's ok my fault, must have somehow thought I was downloading the file for 3.5 but didnt, ahhh i feel stupid now, thanks for the help paul it's much appreciated

Paul M 10-12-2005 07:00 PM

Quote:

Originally Posted by Devil Woman
This was where I downloaded the file from to do the edits etc but I am having problems with step 4

Sorry but you did not download the file with those instructions from this thread.

Devil Woman 10-12-2005 07:01 PM

it's ok now as I said above paul

Quote:

it's ok my fault, must have somehow thought I was downloading the file for 3.5 but didnt, ahhh i feel stupid now, thanks for the help paul it's much appreciated
thanks again

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!

RGSMDNR 11-05-2005 04:08 AM

hmm.. i installed it and im getting the following error on my forums

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/XXXX/public_html/forums/includes/class_core.php on line 2017

i cant even browse the board without getting this error...?

Paul M 11-05-2005 12:14 PM

Then you have made an error editing class_core.php, check your work. :)

Paul M 11-06-2005 10:18 PM

Version 2.11 uploaded.

This includes changes in the way it works internally, there is no need to upgrade if your current version is happily working.

dieselpowered 11-10-2005 03:48 AM

Paul quick question...I was not paying attention and installed this without having 'Allow Overwrite' clicked...will this cause problems?

Thanks!

Paul M 11-10-2005 05:30 AM

If you havn't installed it before then it won't make any difference.

dieselpowered 11-10-2005 03:25 PM

Quote:

Originally Posted by Paul M
If you havn't installed it before then it won't make any difference.

Ok that is what I thought...appreciate the response as always!!

slank 11-10-2005 04:10 PM

great idea and hack - installs with glee

biggjoe 11-13-2005 05:31 AM

Paul;

Thanks for the great hack! Very nice, simple to install and works great on vb 3.5.1.

A few notes:

I noticed, after checking through my steps over and over again, that everything worked great, except for the red icon...which was not appearing. Also yes, I did make sure it was loaded into the correct style/images/button folder and so on.

I noticed that I got a different image/icon, one that was more like a square 'check box'. When choosing 'view image' it was looking for a file called 'ipp.gif'.

Now my custom style, uses an 'ip.gif' and all works well, but the hack some how, was making a call for 'ipp.gif'...which is WEIRD since this is not used anywhere in my custom style.

So, I just simply renamed 'px.gif' to 'ipp.gif' and all works great! The icon is red, I can hover the mouse arrow over the icon and it gives me the 'real ip address'.

Also, I can click on the red icon and I get the correct message:

Quote:

vBulletin Message

The Real IP Address is: 68.64.155.66
lamrda-cuda2-68-64-155-66.lmdaca.adelphia.net
The Proxy Server IP Address is: 200.219.184.81
200.219.184.81
Btw, here are the details on the proxy that I used to test this function:

Proxy IP Address: 200.219.184.81

Port #: 8080

User/Pass: N/A

I have another mod also installed called 'Log Logins Hack' and it was able to work with your hack and show me the real ip address. FYI, I did test with both anon and non-anon proxies just to make sure.

Thanks again for the sweek hack!

Hope my info is of some assitance.

One final question: Are there any tools at all that show up in AdminCP, when using this hack?



Peace!

J.

Paul M 11-13-2005 12:57 PM

Quote:

Originally Posted by biggjoe
I noticed, after checking through my steps over and over again, that everything worked great, except for the red icon...which was not appearing.

I noticed that I got a different image/icon, one that was more like a square 'check box'. When choosing 'view image' it was looking for a file called 'ipp.gif'.

So, I just simply renamed 'px.gif' to 'ipp.gif' and all works great! The icon is red, I can hover the mouse arrow over the icon and it gives me the 'real ip address'.

Hmm, px.gif used to be called ipp.gif in the old 3.0.x version. Somehow the old name sneaked into the template in the 2.11 update last week. I have fixed that now and uploaded the mended version (2.12). Thanks for reporting it :up:

Quote:

Originally Posted by biggjoe
One final question: Are there any tools at all that show up in AdminCP, when using this hack?

No, this does not make any alterations to the ACP.

biggjoe 11-13-2005 11:11 PM

Hey Paul, thought you might be interested in a post I made regarding your mod working wth Zach's ipInfo -- Extra user IP information.

Here's my post:

https://vborg.vbsupport.ru/showthrea...634#post820634

J.

Paul M 11-13-2005 11:59 PM

Actually they work fine together apart from the display aspects in the postbit, if you install this hack, and then disable the product, it will still to the proxy > ip conversion, and use/record the real address, what it won't do is store/use the proxy address.

In fact, I *think* that if you have the latest version of this hack installed and fully active, if you then just manually disable the Proxy to Real IP (2) plugin, they should co-exist nicely.

dieselpowered 11-14-2005 12:18 AM

I assume to upgrade you just import product and allow overwrite?

Paul M 11-14-2005 12:20 AM

Quote:

Originally Posted by xtremeoff-road
I assume to upgrade you just import product and allow overwrite?

Yes. Only the product has changed, not the file edits.

dieselpowered 11-14-2005 12:32 AM

Quote:

Originally Posted by Paul M
Yes. Only the product has changed, not the file edits.

That is what I thought, but just wanted to make sure :)

Thanks as always Paul!!

biggjoe 11-14-2005 01:52 AM

Paul;

Thanks for the tip. Yes, as I outlined in my post, they both can co-exist...it's just the UI side that's not totally compatible. However, I'm glad that all I have to do is just disable the 'Proxy to Real IP (2) plugin' instead of the entire hack...which is pretty cool.

Any word on a future update that fixes the UI issue?

Thanks again for the hack!

J.

Quote:

Actually they work fine together apart from the display aspects in the postbit, if you install this hack, and then disable the product, it will still to the proxy > ip conversion, and use/record the real address, what it won't do is store/use the proxy address.

In fact, I *think* that if you have the latest version of this hack installed and fully active, if you then just manually disable the Proxy to Real IP (2) plugin, they should co-exist nicely.

dieselpowered 11-14-2005 02:28 AM

Sorry, I think I have turned a bit stupid now...

Do I need to uninstall the old one before importing the new or is the system intelligent enough to over write the old?

Thanks!

Paul M 11-14-2005 03:31 AM

Do exactly as you asked before ;

Quote:

Originally Posted by xtremeoff-road
I assume to upgrade you just import product and allow overwrite?


Paul M 11-14-2005 03:34 AM

Quote:

Originally Posted by biggjoe
Any word on a future update that fixes the UI issue?

Not really, it's not that important, it's only the displaying of the red image that you lose, all the functionality is there, the same url is still called when you click it.

If you really want you could edit the ipinfo link into the postbit_proxyip template and turn Plugin 2 back on.

dieselpowered 11-14-2005 02:19 PM

Thanks Paul...not sure why I always doubt myself when I know the answer. Guess I was thinking that it would then create two plugins if I did not uninstall the previous.

Thanks again sir!

aciurczak 11-14-2005 05:21 PM

Uninstalled. Got a few database errors this morning with a link to class_core.php; a day after I modded class_core.php for this hack.

Quote:

Database error in vBulletin :


mysql_connect(): Lost connection to MySQL server during query
/xxx/xxx/xxx/forums/includes/class_core.php on line 273


MySQL Error :
Error Number :
Date : Monday, November 14th 2005 @ 01:56:22 PM
Script : http://www.xxxxxx.com/forums/forumdisplay.php?f=5
Referrer : http://www.xxxxxxx.com/forums/index.php
IP Address : 24.4.xxx.xxx
Username :
Classname : vb_database


All times are GMT. The time now is 04:46 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.01556 seconds
  • Memory Usage 1,840KB
  • 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
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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