PDA

View Full Version : Use real ip when proxy server is detected.


Pages : [1] 2

Paul M
08-27-2005, 10:00 PM
This modification is no longer available or supported.

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

Obviously this hack relies on the proxy server passing the correct http variables to allow detection. This hack is packaged as a vBulletin product.



History:

v2.12 : Template fix for px.gif.
v2.13 : Minor changes, no update necessary.

Paul M
08-28-2005, 01:06 AM
< Post reserved for future use >

KuRi
08-28-2005, 01:24 AM
Great mod. Thanx

FrozenCreations
08-28-2005, 01:51 AM
yeah !!! really useful!!!

*install!!*

this is probally a stupid question!!!

screens? if there are any

what about eliete anon, proxies

Paul M
08-28-2005, 02:56 AM
There is not really much to show in a screen shot, I'm sure you know what an ip address looks like. Obviously anon proxies do not pass on the http variables, so no, you won't detect them (which is why they called anonymous proxies .......)

Xplorer4x4
08-28-2005, 04:48 AM
I have it instaled with no errors...but how do I know this is working. I don;t see the red icons showing up anywhere on my board. For example AOL uses proxies so wouldn;t the red icon show up for an AOL user?

Paul M
08-28-2005, 11:38 AM
I have it instaled with no errors...but how do I know this is working. I don;t see the red icons showing up anywhere on my board. For example AOL uses proxies so wouldn;t the red icon show up for an AOL user?Sadly, No. AOL use proxies that don't pass on the originating IP (which is very poor and annoying, but what do you expect from such a crap company) so they are not detected as such. I don't know what non uk ISP's use them as we are uk based - I believe shaw cable do.

Xplorer4x4
08-28-2005, 11:50 AM
Sadly, No. AOL use proxies that don't pass on the originating IP (which is very poor and annoying, but what do you expect from such a crap company) so they are not detected as such. I don't know what non uk ISP's use them as we are uk based - I believe shaw cable do.

Why do you think there lossing a customer at the end of the year. ;)

Now bassicly if this traces a proxie the red IP icon atached in the zip file will show up instead of the regular one...right?

Paul M
08-28-2005, 12:02 PM
Now bassicly if this traces a proxie the red IP icon atached in the zip file will show up instead of the regular one...right?Correct (obviously this only applies to posts since the hack was installed).

Xplorer4x4
08-28-2005, 12:06 PM
Correct (obviously this only applies to posts since the hack was installed).

Thanks and one final question..will the icon take affect on ALL my skins seeing as some refer to diffrent directories for buttons?

hotrod1
08-28-2005, 12:30 PM
Great mod, thanks but you need to change the directions so that you modify the includes/class_core.php file.

Valter
08-28-2005, 01:21 PM
Nice mod, thanks.

Paul M
08-28-2005, 01:53 PM
Thanks and one final question..will the icon take affect on ALL my skins seeing as some refer to diffrent directories for buttons?No, you will have to add the image to any other style button folders.

Great mod, thanks but you need to change the directions so that you modify the includes/class_core.php file.Possibly, there is only one class_core.php. I'll think about it. :)

Xplorer4x4
08-28-2005, 06:12 PM
Ahh ok, just one more question, seriously this time :p, do you know of a proxie surfer I can use to test this method?

Thanks for all your help Paul.

thc34
08-28-2005, 06:12 PM
Great mod. Thanx

Paul M
08-28-2005, 06:22 PM
Ahh ok, just one more question, seriously this time :p, do you know of a proxie surfer I can use to test this method?

Thanks for all your help Paul.Actually no I don't. If you PM me a link to your forum, with a test account login, I will post for you. My isp (ntl uk) force us via proxy servers.

MP3
08-28-2005, 06:48 PM
thanks alooooooooooooooooooooooooooot

thats what i'm looking for ^_^

Xplorer4x4
08-28-2005, 08:43 PM
Actually no I don't. If you PM me a link to your forum, with a test account login, I will post for you. My isp (ntl uk) force us via proxy servers.

Thanks for helping me test that Paul. Instaled and working perfectly.

Xplorer4x4
08-29-2005, 08:56 AM
Unfortunetley due to the modifcations of global.php in this hack, it disables the compatibilty of vBadvanced.

*Uninstaled* :(

Just to back up my point, the error in the index script for vBAdvanced is pointing me to this line of the VBA adcanced index:
require_once('./global.php');

Paul M
08-29-2005, 10:03 AM
Unfortunetley due to the modifcations of global.php in this hack, it disables the compatibilty of vBadvanced. Huh ? This does not touch global.php ........

Xplorer4x4
08-29-2005, 10:06 AM
Huh ? This does not touch global.php ........

Hmm sorry must have been thinking about another hack. *Reinstaled*

EDIT: Working fine with VBA. Not sure what the problem was. Thanks again for the help! :)

rinkrat
08-29-2005, 11:25 AM
OK the ip icon was red under my name and I clidked it and got this:

The Real IP Address is: IPADDRESS

The Proxy Server IP Address is: PROXYIP

Yes, I uploaded/installed the plugfin.

Paul M
08-29-2005, 02:40 PM
Did you do the file edits ?

ABH
09-18-2005, 10:48 PM
where do you find class_core.php?

Paul M
09-18-2005, 11:19 PM
in the includes folder.

ABH
09-19-2005, 12:40 AM
hm...its not in mine...

Barakat
09-19-2005, 01:54 AM
Real IP Address : $postinfo[ipaddress]
$postinfo[hostaddress]
Proxy Server IP Address : $postinfo[proxyip]
$postinfo[proxyhost]

what is that error ? intall it as it should be i think but this what it gave me ?

Kirk Y
09-19-2005, 07:03 PM
<span class="highlight">* acidburn0520 clicks install</span>

Paul M
09-19-2005, 09:58 PM
hm...its not in mine...Then you don't have vb 3.5, since vBulletin won't work without it's core file ......

Paul M
09-19-2005, 10:01 PM
what is that error ? intall it as it should be i think but this what it gave me ?Ummm.... pass. Check you did it all correctly.

csidlernet
10-05-2005, 03:14 AM
thanks!
/me installs

Paul M
10-05-2005, 03:55 AM
* csidlernet installscsidlernet has been very busy tonight by the look of things. :)

utw-Mephisto
10-05-2005, 11:33 AM
It is working great but I just discovered one member having as Proxy only PROXYIP displayed. I thought first it was something missing in file edits, but all the other proxy people are displayed correctly - any thoughts >!?

DBs
10-05-2005, 03:16 PM
I used to run this hack on vb3.0.x and it worked great.

Just installed it on my 3.5 and i too get the following, when clicking on the getip link,

Real IP Address : $postinfo[ipaddress]
Real IP Hostname : $postinfo[hostaddress]
Proxy Server IP Address : $postinfo[proxyip]
Proxy Server Hostname : $postinfo[proxyhost]

All fileedits applied to class_core.php

Paul M
10-05-2005, 05:24 PM
It is working great but I just discovered one member having as Proxy only PROXYIP displayed. I thought first it was something missing in file edits, but all the other proxy people are displayed correctly - any thoughts >!?That means that PROXYIP was not defined at the time the data was saved, I can't see how that would be possible once it's all installed and working. Is this for all their posts or just a few at the time you installed it - i.e if they post again now, what do you see ?

Paul M
10-05-2005, 05:36 PM
I used to run this hack on vb3.0.x and it worked great.

Just installed it on my 3.5 and i too get the following, when clicking on the getip link,

Real IP Address : $postinfo[ipaddress]
Real IP Hostname : $postinfo[hostaddress]
Proxy Server IP Address : $postinfo[proxyip]
Proxy Server Hostname : $postinfo[proxyhost]

All fileedits applied to class_core.phpIt's nothing to do with the file edits - it's because your phrase "thread_displayproxyip" is wrong (it's the 3.0.x version).

Edit the phrase and change it to ;
The Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}

memoriess
10-06-2005, 06:30 AM
It's nothing to do with the file edits - it's because your phrase "thread_displayproxyip" is wrong (it's the 3.0.x version).

Edit the phrase and change it to ;
The Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}


Sorry how do I alter the sql?

I'm not good in this..

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE vb ADD proxyip VARCHAR(50) not null AFTER ipaddress' at line 1

Paul M
10-06-2005, 07:46 AM
Eh ?

Why are you trying to run that sql (which btw, is not even from the 3.5.0 version).

memoriess
10-06-2005, 08:47 AM
Eh ?

Why are you trying to run that sql (which btw, is not even from the 3.5.0 version).

Because I'm trying to follow the instructions to convert proxy to ip.. Pls help.

DBs
10-06-2005, 02:01 PM
Yeh, i had 2 phrases with different texts.

You might wanna add that to the install notes?

Cheers, all working lovely now :)

It's nothing to do with the file edits - it's because your phrase "thread_displayproxyip" is wrong (it's the 3.0.x version).

Edit the phrase and change it to ;
The Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}

Paul M
10-06-2005, 05:46 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=69295), 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

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
This was where I downloaded the file from to do the edits etc but I am having problems with step 4Sorry 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

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?queryinput=200.96.73.211

I did it modifying the phrase thread_displayproxyip, and writing:
<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?queryinput=200.96.73.211%3Cbr%20/%3E200.Red-200-96-11.staticIP.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
Two both variables take IP and his DNS name. How can I take only IP number?You can't unless you modify the code.

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

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.

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

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

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

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 (https://vborg.vbsupport.ru/showthread.php?t=96834&page=1&pp=15).

Here's my post:

https://vborg.vbsupport.ru/showthread.php?p=820634#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
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
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.

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 ;

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

Paul M
11-14-2005, 03:34 AM
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.

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

Paul M
11-14-2005, 08:13 PM
You choice I guess, but the changes have no connection with mysql. That's a general timeout error reported many times on vb.com.

aciurczak
11-14-2005, 08:20 PM
Thanks Paul, maybe I'll put it back in awhile if I see these errors from time to time without the hack installed. Seeing them for the first time only after installing the hack, and having the error point to the file that I just modified, made me think there must be some relation, but who knows. (I don't). :-)

CyberRanger
11-18-2005, 08:03 PM
Thanks for this mod. It will really help my board with proxy users getting locked out by other users on the same proxy fat fingering their passwords.

djlotus
11-20-2005, 02:43 AM
Just what I have been looking for.

***INSTALLS***

Wordplay
11-20-2005, 06:15 PM
could you please clear up some uncertainty of mine? proxy and real ip?

you mean by real ip the ip you see when you run cmd /ip? and with proxy the ip you get from you provider?

if thats the case... damn... thank you... where have you been... and all that good stuff. as i am still uncertain as to whether this is what i've been lookin for. but please make that clear to me.

Paul M
11-20-2005, 10:06 PM
Real ip is the ip you have on the internet, normally provided by your isp. Proxy ip is the ip of any http proxy server you may be routed via (if that proxy passes on the details of you real ip). Real ip is not necessarily the ip of your pc, as you may be on an internal network that uses NAT to access the internet. btw, I have never seen cmd /ip before.

Wordplay
11-20-2005, 10:51 PM
i ment cmd /k ipconfig, so it isn't the actual pcs, ip. that would've been too cool.

Paul M
11-20-2005, 11:01 PM
i ment cmd /k ipconfig, so it isn't the actual pcs, ip. that would've been too cool.It may or may not be, it depends on how that pc connects to the internet.

slvr ralliart
11-21-2005, 12:07 AM
I love this hack!

Exernon
11-22-2005, 09:11 AM
Sorry to ask this question but does the px.gif only appear if the thread was posted with a proxy ip?

Mastar
11-22-2005, 01:35 PM
I installed 3.51 and I see no signs that it is there! Where should I look?

Paul M
11-22-2005, 04:02 PM
Sorry to ask this question but does the px.gif only appear if the thread was posted with a proxy ip?Yes.

Chadi
11-24-2005, 11:42 PM
When I click on the IP icon below postbit (thread view) it shows this:

$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].

How do I correct this?

Paul M
11-25-2005, 01:28 AM
I have no idea since that display is not part of this hack.

eNforce
11-27-2005, 12:45 AM
I find on my board it shows EVERY users IP as a proxy

The Real IP Address is: **.**.*.***
user-1765.l1.c3.dsl.pol.co.uk
The Proxy Server IP Address is: PROXYIP

Paul M
11-27-2005, 12:51 AM
Then you have done something wrong, or more likely not done something (i.e. the file edits to class_core).

eNforce
11-27-2005, 12:54 AM
I did the file edit 5 times :[

Paul M
11-27-2005, 02:06 AM
and uploaded them ?

Jpax
11-27-2005, 04:42 AM
I can;t tell if it is working. I don't have any errors, I don't get that px.gif anywhere on any style i use, and i uploaded the px.gif to all the style button folders. I click on the ip address on one of the members post but it shows the standard ip addy.

Paul M
11-27-2005, 09:56 AM
You won't see any difference unless someone posts via a detected proxy.

da420
12-06-2005, 04:59 AM
This is a neat hack. Installed, but in the threads only half of the posts the gif show up. The rest in the thread have a link that says IP, but everything else works excellent.

I uploaded to specified folder and everything...

Paul M
12-06-2005, 05:45 AM
If you mean the red gif, it only shows on a post that has proxy server details stored.

da420
12-06-2005, 04:56 PM
It shows up on the first half of the posts in the thread. Then it shows a link that says IP. What happens when you click it is you get the IP info and all that. But the icon shows for the first half of the posts only, then it's just the link.

Paul M
12-06-2005, 09:15 PM
Sorry I don't really understand, perhaps you can post a screenshot.

da420
12-06-2005, 09:33 PM
OK. The little IP icon shows up on the first half of the posts in a thread. After the first half of the posts it's just a text hyperlink that says IP instead of the icon. So if a thread has 20 posts, the first 10 posts show up with the icon, the next 10 posts are the hyperlink that says IP, if a thread has 4 posts the first 2 posts are the icons, and the other 2 posts are hyperlinks that say IP.

If you still need a screenshot I will get a couple up when I get home.

Thanks.

Paul M
12-06-2005, 09:43 PM
Is this the standard ip icon you mean ? are the others looking for the new icon (for proxy posts). It sounds possibly like you don't have px.gif in the right place (because you are using a custom style maybe ?)

dieselpowered
12-07-2005, 02:04 AM
This does not appear to work with 3.5.2

In an attempt to do the file edits, the default strings that we are to search for do not seem to exist. Is this correct?

Paul M
12-07-2005, 03:31 AM
In an attempt to do the file edits, the default strings that we are to search for do not seem to exist. Is this correct?No idea, I don't have 3.5.2 yet. When I get it I will check and update as required.

Jenta
12-07-2005, 02:18 PM
I find on my board it shows EVERY users IP as a proxy

The Real IP Address is: **.**.*.***
user-1765.l1.c3.dsl.pol.co.uk
The Proxy Server IP Address is: PROXYIP

I finally installed this since 3.5.2 is out now and got the same thing on a test. Will see if it's just the proxy I used. CGIProxy on same domain. I'm pretty sure CGIProxy gets through as high anonymity so maybe that's why.

dieselpowered
12-07-2005, 02:39 PM
No idea, I don't have 3.5.2 yet. When I get it I will check and update as required.

I know that you will take care of it :)

Just thought I would point it out!

Paul M
12-07-2005, 06:25 PM
Well I've looked at the 3.5.2 code and it's the same - all the edits are there as specified. :)

Metal-R-US
12-07-2005, 06:44 PM
I experience the same thing: all new posts show up as being done through a proxy... :confused:

dieselpowered
12-07-2005, 07:10 PM
Well I've looked at the 3.5.2 code and it's the same - all the edits are there as specified. :)

Really? Hmmm then I wonder if my search string was messed up. I will try again. Thanks as always Paul!

Paul M
12-07-2005, 07:32 PM
I finally installed this since 3.5.2 is out now and got the same thing on a test. Please remember that file edits are required to class_core.php in this hack, if you don't do them (and upload them ;)) then you will get PROXYIP in every post.

Metal-R-US
12-08-2005, 04:19 AM
I hate it when that happens, I promise to check next time... :o

dieselpowered
12-08-2005, 02:11 PM
Paul, upgraded the site again to 3.5.2, this works fine, it must have been the search string that I was using. Either way, works great on 3.5.2 :)

Thanks as always!

utw-Mephisto
12-10-2005, 11:02 AM
Since I upgraded to 3.5.2 class_core.php was overwritten and every post in the forum were showing the new icon and PROXYIP

I made now all the changed again but this is affecting only new posts .. How can I "reset" the status on the rest of the forum ?

Paul M
12-10-2005, 11:49 AM
You cannot change old posts, other than to edit the database itself.

You could try running something like this ;

update post set proxip = '' where proxyip = 'PROXYIP' ;

Don't do this unless you are sure you know what you are doing, and have a backup.

Rukas
12-10-2005, 01:05 PM
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 :(

boatswife
12-10-2005, 03:54 PM
*clicks install*

Installed without any problems. Thanks!

Not seeing any image yet, but you did say it will not show up unless a real proxy is detected.

Paul M
12-10-2005, 04:19 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=96834)?

Paul M
12-14-2005, 05:23 PM
Seems this hack is overwriting the ipInfo -- Extra user IP information (https://vborg.vbsupport.ru/showthread.php?t=96834)?Well you could always read post #111 in that thread. :)

Ramsesx
12-15-2005, 07:27 AM
Well you could always read post #111 in that thread. :)
Hm, don't know exactly what you mean?
Post #111
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
Hm, don't know exactly what you mean?
Post #111Post number 111 in that thread (every post has a number, top right of the post ....)

I have 3.5.0This 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
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
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
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
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 .....

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

$ignoreprivate = false; // Set to true to ignore private 'real' ip's //
and change it to ;

$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/showthread.php?t=96834&highlight=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
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 ;

$ignoreprivate = false; // Set to true to ignore private 'real' ip's //
and change it to ;

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


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:


$postinfo[username] (http://www.lincolnparkforums.com/member.php?userid=$postinfo[userid])'s information stored for post (http://www.lincolnparkforums.com/showpost.php?p=$postinfo[postid]): $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
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
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.

YLP1
01-15-2006, 03:33 PM
It *is* correct, but is not what is being displayed, you must have a language specific translation or something.

Thank you Paul, you were correct that it was a phrase problem but the phrase that needed to be changed was thread_displayip not thread_displayproxyip.

Don't know what IP mod I had been using but looks like it was yours and at least one other.

Thanks again!

PS: Would you happen to know why my online.php returns a blank page?

I have created a new style using the default template - and confirmed that the headers are default version 3_5_2 so that should eliminate that as a possible reason and I confirmed no spaces at the very beginning and at the end...... I reuploaded the online.php and view online is turned on for admins only but I still get a blank page.

This is driving me nuts... any ideas and where to look?

teedizz
01-23-2006, 05:29 PM
For some reason it doesnt seem to be working. I had a user register & post with a proxy. I checked his i.p. & this is what came up:

The IP Address is: 205.134.241.50. The host name is: 205.134.241.50.

^^ thats a proxy

His REAL I.P. is

The IP Address is: 66.**.***.**. The host name is: cpe-66-**-***-**.hawaii.res.rr.com

Then I checked my i.p. addy & it looked like this

The IP Address is: 70.**.***.***. The host name is: ontario-ca-cuda3-70-**-***-***.ontrca.adelphia.net.

So why are proxy's showing up how they do & not telling me what his true I.P. really was? Am I looking in the wrong plcae cause all im doing is clicking the i.p. address icon in the users post.

IrPr
01-23-2006, 07:22 PM
Nice Hack, Installed but ...
got some error on apache error logs

[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_FROM in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2051
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_FORWARDED in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2052
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_CLIENT_IP in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2053
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2054
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined variable: alt_ip in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2055
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_REFERER in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 1578


vB 3.5.3 on Linux Fedoracore II

Paul M
01-23-2006, 07:41 PM
For some reason it doesnt seem to be working. I had a user register & post with a proxy. I checked his i.p. & this is what came up:

<snip>

So why are proxy's showing up how they do & not telling me what his true I.P. really was? Am I looking in the wrong plcae cause all im doing is clicking the i.p. address icon in the users post.Sorry, I'm not really understanding you, but I assume you read this on the main post ;

Obviously this hack relies on the proxy server passing the correct http variables to allow detectionThis 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).

Paul M
01-23-2006, 07:44 PM
Nice Hack, Installed but ...
got some error on apache error logs

vB 3.5.3 on Linux Fedoracore IIThose are just PHP notices, nothing to worry about.

DannyITR
01-25-2006, 07:36 PM
I spent quite a bit of time searching for the lines in class_core.php. The instructions didn't even list them in chronological order. Here is the info if you wanted to update the readme.

Modification number:

1) code found on line 2042
2) code found on line 1539
3) code found on line 1574

Paul M
01-25-2006, 08:23 PM
Putting line numbers is never a good idea, they can change in each version of vb, and also if member has edited the file for other hacks. Any decent text editor will find the code in seconds using a search.

RFViet
01-26-2006, 04:48 PM
You're the master, Paul :up:

Smiry Kin's
01-28-2006, 08:16 PM
whats the code for the post bit?? im using a element skin, and that image doesnt seem to show up for me??.. im not sure if an image ment to show up but whats

px.gif for thn?

also when trying to search for an IP... it doesnt work?? am i ment to search in the same place? i've tested with my own IP.. to make sure IP is correct when searching. thanks

PIKenPIK
01-31-2006, 07:55 AM
We're in ..... PnP clicks install!!

Thank you!

Paul M
01-31-2006, 08:29 AM
whats the code for the post bit?? im using a element skin, and that image doesnt seem to show up for me??.. im not sure if an image ment to show up but whats

px.gif for thn?

also when trying to search for an IP... it doesnt work?? am i ment to search in the same place? i've tested with my own IP.. to make sure IP is correct when searching. thanksI don't follow your first question. This has no effect as such on ip searching, only what ip is used/recorded.

IC-Games
02-08-2006, 11:01 PM
fantastic, thank you!

One question, why the change to px.gif from ip.gif.

Sorry if its been mentioned 100 times before, anyways great work! :)

my edit - it only shows the px.gif, when the user has posted from a proxy.

In that case :)

Even better, thanks!

* IC-Games clicks install

Paul M
02-09-2006, 01:19 AM
One question, why the change to px.gif from ip.gif.my edit - it only shows the px.gif, when the user has posted from a proxy.I love it when people answer their own questions. :)

FYI, it's name is a clue -> proxy(.gif)

kofoid
02-15-2006, 04:14 PM
So I tested this using a public proxy and it does not resolve my actual IP... any ideas?

Paul M
02-15-2006, 04:44 PM
Did you read the notes ?

This hack makes the forum always use the members real ip when a proxy is detected,
Obviously this hack relies on the proxy server passing the correct http variables to allow detection.I would be very surprised if a public proxy passed on the details, as they are usually designed to be annonymous.

kofoid
02-15-2006, 04:45 PM
AHHH OK cool - thank you for your quick response!

lazytown
02-17-2006, 09:33 AM
Did you read the notes ?


I would be very surprised if a public proxy passed on the details, as they are usually designed to be annonymous.

So which proxies regularly pass the true IPs?

-vissa

streetfighter
02-17-2006, 01:14 PM
Is there any way i can club this hack with IpInfo hack??: https://vborg.vbsupport.ru/showthread.php?t=96834

I had IpInfo installed first.. and then i installed proxy to real ip.. now, my ipinfo one doesnt work :(

Help!

Paul M
02-17-2006, 04:38 PM
You are not showing as having this installed. :)

streetfighter
02-18-2006, 11:07 AM
^^ Oops.. sorry, forgot to click that!
Now i have...

Paul M
02-18-2006, 01:31 PM
You need to read Post 111 in the ipinfo thread.

https://vborg.vbsupport.ru/showpost.php?p=834151&postcount=111

Megareus Rex
02-18-2006, 07:43 PM
Question: How can I use this in tandem with the IP Info hack? When I have both running at once, the IP Info hack is ignored, it seems.

Paul M
02-18-2006, 09:44 PM
Try reading the post above yours.

VBUsers
02-19-2006, 01:07 AM
installed and waiting to see it work thanks

Xplorer4x4
02-19-2006, 01:18 PM
Ok so let me get this right, it does not work on public proxys only ISP proxys? Well that defeats alot of the reason I was interested in using this.

Paul M
02-19-2006, 03:40 PM
Like it says ;

Obviously this hack relies on the proxy server passing the correct http variables to allow detection. Miracles cannot be performed I'm afraid. :)

Logan70
02-23-2006, 02:59 AM
Nice...

Clicks Install

zagman76
02-26-2006, 08:10 PM
Paul - can this work with the ip-extra info hack? ;)
j/k :D

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:

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

no to be ned-nitpicky, but the version I D/L'd today had 2.11 in the instructions :)

Paul M
02-26-2006, 08:57 PM
no to be ned-nitpicky, but the version I D/L'd today had 2.11 in the instructions :)I think I can live with that, I'm not updating it (which alters the dates) just for that. :D

zagman76
02-26-2006, 10:23 PM
I think I can live with that, I'm not updating it (which alters the dates) just for that. :D


ok - cool - i wasn't sure :)

unknownkind
02-26-2006, 11:20 PM
Paul - can this work with the ip-extra info hack? ;)
j/k :D



no to be ned-nitpicky, but the version I D/L'd today had 2.11 in the instructions :)

No they dont work with each other, I installed ip extra info then this proxy tool and the proxy tool was over taking the ip extra info page (the ip extra info page was gone and the proxy tool page was showing up)

Paul M
02-27-2006, 12:17 AM
*sigh* Yes they do - hence why he was joking. Try reading the topic instead of making wild statements, I suggest you start at the top of this page, post 181.

Krose
02-27-2006, 10:46 PM
hi Paul..i just installed your hack, i don't know if i installed it right though,

but when i look at my "Who's Online" page, it turns out only white page..why?

by the way i just upgraded my vBulletin into 3.5.4..

please help me..i really wanted to use your hack badly..regards

Paul M
02-27-2006, 11:23 PM
but when i look at my "Who's Online" page, it turns out only white page..why?
I have no idea, but this does not make any changes to the WOL page.

Krose
02-28-2006, 12:18 AM
thanx for the reply Paul..

I'll try to check it out later, maybe i missed something when i edited the "class_core.php"..

again thanx...you are very supportive.. :up:

LaCN
03-01-2006, 06:49 PM
thanx for the reply Paul..

I'll try to check it out later, maybe i missed something when i edited the "class_core.php"..

again thanx...you are very supportive.. :up:

installed.

hope it workes ;)

Stanley Steamer
03-07-2006, 03:04 AM
Installed :up:

Quick question, will the px.gif turn red on proxies that were posted before this was installed, or will it begin working on new proxies when they are posted?

Never mind, post#9 answered that question.

Stanley Steamer
03-07-2006, 02:13 PM
I just had a new member post and it says, "Could Not Resolve Hostname" when I checked his IP.
Doesn't that mean the person is using a proxy?
The IP icon didn't turn red.
I up loaded the gif to my images/buttons folder and made all the changes in the class core.php file at my host and uploaded the xml file to my forum just as the directions said.

This is how the code appears in my product editor.

$db->hide_errors();
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "post ADD proxyip

VARCHAR(20) not null AFTER ipaddress");
$db->show_errors();

Paul M
03-07-2006, 04:18 PM
I just had a new member post and it says, "Could Not Resolve Hostname" when I checked his IP.
Doesn't that mean the person is using a proxy?
No, it means what it says - there is no hostname associated with the ip address.

Stanley Steamer
03-08-2006, 01:54 AM
If someone posts with a proxy, will the IP icon remain red even after they have logged out?
And if a regular registered member posts with a proxy IP, will it show his real IP and not change the IP icon?

Paul M
03-08-2006, 12:09 PM
Why don't you use it for a few days and you will see the answers.

alraqee
03-10-2006, 11:27 AM
hi Paul

i realy need that hack and tryed to install, i got this error:

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /data/6/0/552/67/65454/user/52542/xxxxxx/forum/includes/class_core.php on line 2083

and i'm sure of the editing the class_core.php file

what could be the problem??

note: my forum is 3.5.4

please help

alraqee
03-11-2006, 07:06 PM
up up any body??

Paul M
03-11-2006, 07:44 PM
please make sure you have clicked the install link - esp if you require support

Stanley Steamer
03-13-2006, 11:39 PM
Why don't you use it for a few days and you will see the answers.

It works! :up:

derfelix
03-22-2006, 06:26 PM
One little teeny request...
As i am just coding a board in 6 languages..
if you place the px.gif in the buttons folder..
it has to be copied in each style.. AND in each language button folder..

any other folder would be great :rolleyes:
otherwise.. excellent!
Felix

Paul M
03-22-2006, 07:29 PM
That's where it should belong, so you can vary it from style to style. :)

Nathan2006
03-28-2006, 02:57 PM
Thank you Paul :)

Install

David Copeland
04-03-2006, 09:49 PM
Sadly, No. AOL use proxies that don't pass on the originating IP (which is very poor and annoying, but what do you expect from such a crap company) so they are not detected as such. I don't know what non uk ISP's use them as we are uk based - I believe shaw cable do.


Has anyone had any luck in banning an AOL user?

darla
04-22-2006, 01:20 AM
where do i find the class_core.php file???????

Paul M
04-22-2006, 01:24 AM
in the includes folder ......

Orix
04-23-2006, 09:41 AM
Hi There,


Thanks a lot Paul, great Job, perfect, we could now exclude all fu#$*? users lol :banana:

Install

Orix


in the includes folder ......

Krose
04-23-2006, 11:14 PM
i installed this last Feb. 28, i mess up with the editing, last week i find my
time to re-edit the core.php..it's working now! thanx again Paul :p

bashy
05-07-2006, 12:05 PM
Hi Paul

Mine says The Proxy Server IP Address is: PROXYIP

Whats this all about please?

kurtbarker
05-07-2006, 01:59 PM
hey mate, I read back a couple of pages and couldn't see this being asked... but I am running the Whois IP Output hack: https://vborg.vbsupport.ru/showthread.php?t=114602

This changes the IP address in whosonline to display a link, which goes to a whois database to find out information of the uses...

This hack changes the IP address in whos online right? Do we know if these are compatible? Or will showing the Real IP not find a relating link in Whois?

Paul M
05-07-2006, 03:32 PM
Hi Paul

Mine says The Proxy Server IP Address is: PROXYIP

Whats this all about please?
You either haven't done the file edits, or haven't done them properly.

bashy
05-07-2006, 03:39 PM
Class_core or sopmmat like that...i will go through it again though to make sure it was done correctly :)

bashy
05-07-2006, 03:43 PM
Hi Paul, Just gone through the edits again and they look spot on to me m8??

Paul M
05-07-2006, 03:56 PM
Hi Paul, Just gone through the edits again and they look spot on to me m8??Have you actually uploaded the edited file and reset any php cache ?

Sorry, but if you have done it right, it's impossible to get what are seeing - PROXYIP is a constant, defined at the same time as IPADDRESS and ALT_IP - it only has the value of 'PROXYIP' if it hasn't been defined, and if you look at the code you will see it's defined by an IF/ELSE, so it always has a value of some sort (and since the same code defines ipaddress and alt_ip, they cannot have values, but proxyip not be set).

bashy
05-07-2006, 04:02 PM
Hi m8

I really dont know...i used this hack before and it worked well, since the server move, i upgraded to 3.5.4 and had to install this again but this time round i get the error.... The edited files is deffo on the server...

I aint even sure about posting it on here as its quite a delicate file aint it?

Paul M
05-07-2006, 04:12 PM
You are not allowed to post the file. :) Are you using APC or some other php cache ?

You could always send me ftp details, I have a few spare minutes atm.

bashy
05-07-2006, 04:21 PM
I have a template compressor but thats all AFAIK
I have sent a PM, thanks :)

Paul M
05-07-2006, 04:58 PM
There is nothing wrong now - but a quick scan of posts shows that you obviously had done something wrong, and that you fixed it yourself approximately four hours ago. It worked fine up until April 4th, then nothing at all (not installed) until April 29th (when I assume you installed it again) From April 29th until about 4 hours ago it was not working correctly, it then got fixed and is now working correctly. :)

bashy
05-07-2006, 05:08 PM
So is it showing ok to you...cause i still get
The Proxy Server IP Address is: PROXYIP

Paul M
05-07-2006, 05:48 PM
As I just explained to you above, you broke it between April 29th and a few hours ago - that information is fixed, it won't change now it's working properly, only new posts (after the fix) will be correct. :)

AraServ
05-31-2006, 05:51 AM
Paul M is this hack also give the real IP when some one register an new member ?

i mean in user[ipaddress]

Paul M
05-31-2006, 09:40 AM
Whenever it is detected, it will be used, anywhere on the forum.

David Copeland
06-03-2006, 11:39 PM
Has anyone had any luck in banning an AOL user?

TygerTyger
06-05-2006, 05:56 PM
AOL doesn't pass on the proper information, so you can't ban an AOL member using this mod.

You can just ban them by IP address which will work as effectively as for any other dynamic IP address. i.e. not very well and you might end up banning innocent people.

David Copeland
06-05-2006, 09:13 PM
AOL doesn't pass on the proper information, so you can't ban an AOL member using this mod.

You can just ban them by IP address which will work as effectively as for any other dynamic IP address. i.e. not very well and you might end up banning innocent people.

The problem I have with even looking at an AOL IP address, is that all their IP addresses come out of their Arlington, Virgina site which makes it useless to determine which city the AOL member is connecting from.

ubblite
06-09-2006, 06:48 AM
Just wondering if this will be updated to work with vb3.6.0 - I noticed the class_core.php file in 3.6.0 has changed.

Paul M
06-10-2006, 06:07 PM
This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.

Sangrun
06-11-2006, 02:32 AM
Installed and thank you!

Pamela
06-16-2006, 05:59 AM
*clicks install*

Thanks!!! :D

SupremeWeapon
06-17-2006, 09:29 PM
Find ;

// fetch client IP address
$registry->ipaddress = $this->fetch_ip();
define('IPADDRESS', $registry->ipaddress);

// attempt to fetch IP address from behind proxies - useful, but don't rely on it...
$registry->alt_ip = $this->fetch_alt_ip();
define('ALT_IP', $registry->alt_ip);


Replace with ;

// Paul M - Fetch client IP address & Proxy server address if detected
$registry->ipaddress = $this->fetch_ip();
$registry->alt_ip = $this->fetch_alt_ip();
define('ALT_IP', $registry->ipaddress);
if ($registry->alt_ip == '')
{
define('PROXYIP', '');
define('IPADDRESS', $registry->ipaddress);
}
else
{
define('PROXYIP', $registry->ipaddress);
define('IPADDRESS', $registry->alt_ip);
}

isnt in the class_core.php for 3.5.4

neither is
Find ;

// define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . $registry->alt_ip)); // this should *never* change during a session
define('SESSION_HOST', substr($registry->ipaddress, 0, 15));


Replace with ;

// Paul M - define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS));
define('SESSION_HOST', substr(IPADDRESS, 0, 15));

ubblite
06-17-2006, 10:56 PM
This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.
Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.

Paul M
06-17-2006, 11:23 PM
isnt in the class_core.php for 3.5.4I suggest you look again, because it's all there. :)

Paul M
06-17-2006, 11:24 PM
Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.It will work fine, but the code to look for has changed slightly (and the changes will be slightly different) - as I said, I will do a 3.6 version, but not atm, we are still only on beta 2.

SupremeWeapon
06-18-2006, 01:37 AM
I suggest you look again, because it's all there. :)


looking and not seeing. find can't even find it.


edit.. mmk found it.... going through a file line by line word by word isn't fun at all.


***Installed***

jw00dy
06-19-2006, 08:39 PM
First off Great Hack, so thank you.

I am however, getting an error that I'm wondering if you can shed some light on?

I get these emailed to me every so often.
Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO proxycache (ip, listed, dateline) VALUES ('24.225.90.201', 0, 1150736342);

MySQL Error : Duplicate entry '24.225.90.201' for key 1 Error Number : 1062
Date : Monday, June 19th 2006 @ 10:59:10 AM
Script : http://allthingsmoto.com/forums/index.php
Referrer : http://allthingsmoto.com/
IP Address : 24.225.90.201
Username : superrooster
Classname : vb_database
It looks like they are only stating that theirs a duplicate entry, but I'm not completely sure. That and they are somewhat annoying.

Any idea? TIA

Paul M
06-19-2006, 09:51 PM
Sorry, no idea, whatever "proxycache" is, it's not a standard vbulletin table, and not related to this hack at all.

It must be something (else) you have installed in the past.

jw00dy
06-20-2006, 05:38 AM
okay, thanks for looking... wonder what the crap I went and did...

Zelos
06-27-2006, 11:10 PM
Saw someone with the proxy icon, clicked, and this came up:
The Real IP Address is: 203.57.82.186
ns1.coastalit.com.au
The Proxy Server IP Address is: 203.57.82.186
ns1.coastalit.com.au
The adresses are identical. Is this a glitch?

Paul M
06-28-2006, 02:51 AM
That is the information being passed to your server by the remote client.

Shazz
06-28-2006, 03:08 AM
Much thanks Paul
*Nominates finally
________
buy iolite (http://www.vaporshop.com/iolite-vaporizer.html)

Shazz
06-28-2006, 03:42 AM
Nvm..
I told someone else to use a proxy.
And it didn't work , he had a different ip :(
________
Ford B3 platform (http://www.ford-wiki.com/wiki/Ford_B3_platform)

Paul M
06-28-2006, 03:45 AM
As it says ;

Obviously this hack relies on the proxy server passing the correct http variables to allow detection

You cannot detect annonymous proxy servers, that's the whole point of them.

Shazz
06-28-2006, 03:04 PM
oooo
thanks for the verify
________
Detroit, Toledo and Ironton Railroad (http://www.ford-wiki.com/wiki/Detroit,_Toledo_and_Ironton_Railroad)

Bulent Tekcan
07-20-2006, 04:35 PM
This code add column in post table

ALTER TABLE " . TABLE_PREFIX . "post ADD proxyip VARCHAR(20) not null AFTER ipaddress");

How can I delete this column ?

ALTER TABLE `post` DROP `proxyip`; is is correct ?

Paul M
07-20-2006, 05:12 PM
Yep.