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 08-27-2005 10:00 PM

Use real ip when proxy server is detected.
 
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

Quote:

Originally Posted by Xplorer4x4
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

Quote:

Originally Posted by Paul M
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

Quote:

Originally Posted by Xplorer4x4
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

Quote:

Originally Posted by Paul M
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

Quote:

Originally Posted by Xplorer4x4
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.

Quote:

Originally Posted by hotrod1
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

Quote:

Originally Posted by Xplorer4x4
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

Quote:

Originally Posted by Paul M
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:
PHP Code:

require_once('./global.php'); 


Paul M 08-29-2005 10:03 AM

Quote:

Originally Posted by Xplorer4x4
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

Quote:

Originally Posted by Paul M
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

Quote:

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

Quote:

Originally Posted by ABH
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

Quote:

Originally Posted by Barakat
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

Quote:

Originally Posted by csidlernet
[high]* csidlernet installs[/high]

csidlernet 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

Quote:

Originally Posted by utw-Mephisto
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

Quote:

Originally Posted by DBs
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

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

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

memoriess 10-06-2005 06:30 AM

Quote:

Originally Posted by Paul M
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 ;
Code:

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

Quote:

Originally Posted by Paul M
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 :)

Quote:

Originally Posted by Paul M
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 ;
Code:

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



All times are GMT. The time now is 04:24 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.01701 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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