vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Proxy to Real IP Conversion (https://vborg.vbsupport.ru/showthread.php?t=120082)

Paul M 07-01-2006 10:00 PM

Proxy to Real IP Conversion
 
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 ......

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

If a proxy is detected, then a red ip icon is displayed instead of the standard one. This mod will also detect if the ipinfo hack is installed and adjust itself to call the ipinfo code.


History:

v2.20 : Updated for vb 3.6. IP Info detection added.
v2.21 : Dependancies updated for 3.6.0 Gold.
v2.22 : Updated for Version Checking.
v2.23 : Fixed bug causing wrong ip in WOL display.
v2.24 : Rewritten slightly to fix a minor issue with spiders.
v2.25 : Updated for changes in vB 3.6.4.


Remember that this modification involves changes to the class_core.php file - if you upgrade your vbulletin, you must reapply those changes.

Please do not post asking why this does not work with some proxy servers, the answer is already in the notes above, and also in Post #160.

Shazz 07-01-2006 11:35 PM

Thanx!

Not installed anymore on vBCoderz
________
clear trichomes

Paul M 07-01-2006 11:38 PM

Quote:

Originally Posted by Shazz
Only for the beta :(

Not really sure what you mean by that - vb 3.6 only exists as a beta atm.

Michael_Tree 07-02-2006 12:36 AM

3.5.4?

Shazz 07-02-2006 12:38 AM

Quote:

Originally Posted by Michael_Tree
3.5.4?

Yea. thats what i ment sorta n stuff
or is 3.5.4 for Use real ip when proxy server is detected.
________
Edsel Pacer

Paul M 07-02-2006 12:52 AM

The 3.5 version, and 3.0 version, are listed in the similar threads at the bottom of this page.

Michael_Tree 07-02-2006 02:03 PM

thanks paul, i probably wouldn't trust this if i didn't see your name as the author. dunno tho

Tungsten 07-05-2006 02:56 PM

Would this display the dynamic IP assigned to an AOL user and ignore the AOL proxy IP, for example?

Paul M 07-05-2006 04:09 PM

No, AOL's stupid proxy servers don't pass on the correct variables.

ET240 07-21-2006 03:34 AM

anyone tried on vb 3.6 RC2 ?

Paul M 07-21-2006 04:17 AM

Yes.

ET240 07-21-2006 09:26 AM

Quote:

Originally Posted by Paul M
Yes.

so it's working perfectly in 3.6 rc2?

Paul M 07-21-2006 04:06 PM

Yes.

TygerTyger 07-22-2006 04:32 PM

The sections of code you're to find/replace don't match what's in class_core.php for RC2 though. It looks like the same instructions as from 3.5 in the zip. In fact, the appropriate code to replace (plus some extra elsewhere in the file) has some extra stuff about proxy detection which 3.5 didn't. How does this hack fit in with all that?

Paul M 07-22-2006 05:08 PM

Quote:

Originally Posted by TygerTyger
The sections of code you're to find/replace don't match what's in class_core.php for RC2 though.

Yes they do.

Quote:

Originally Posted by TygerTyger
It looks like the same instructions as from 3.5 in the zip.

Maybe you downloaded the 3.5 instructions then, they are not the same.

Quote:

Originally Posted by TygerTyger
In fact, the appropriate code to replace (plus some extra elsewhere in the file) has some extra stuff about proxy detection which 3.5 didn't. How does this hack fit in with all that?

Not sure what you are referring to, but nothing has really changed from 3.5 (except possibly the comments).

TygerTyger 07-22-2006 05:43 PM

I'm terribly sorry, not even I can find what on Earth Find/Replace was finding. Go figure.

I take it back, works immaculately in RC2. :D Thank you very much for your work.

Paul M 07-22-2006 07:02 PM

Glad to hear. :)

mano1.com 07-31-2006 03:37 AM

clicked INSTALL!

I hope this helps with all the trolls and clones... I wish the ip in the "whos online" list was BOLD AND RED when someone is using a proxy... to spot them fast and double check if they are doings omething wrong

thank you

Shazz 08-03-2006 07:45 PM

*Installed thanx
________
Toyota Platz history

rasp187 08-03-2006 07:47 PM

Quote:

Originally Posted by mano1.com
clicked INSTALL!

I hope this helps with all the trolls and clones... I wish the ip in the "whos online" list was BOLD AND RED when someone is using a proxy... to spot them fast and double check if they are doings omething wrong

thank you

Yeah, that'd be pretty convenient.

I install it and all went smoothly. Looking forward to seeing it work.

stinger2 08-06-2006 01:05 PM

downloaded

Phaedrus 08-06-2006 04:30 PM

Installed. I have no idea if it is working though...

Phaedrus 08-06-2006 04:45 PM

Does anybody use a Proxy, any Brits online? I'm anxious to see if this is working. I have this one user... Keeps coming 'round uninvited.

Treasure Quest 08-06-2006 07:46 PM

Hi,

I can't find this in class_core.php anywhere using the find feature:

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

Paul M 08-06-2006 08:01 PM

I guess your find isn't working too well, they are there (lines 1557 - 1563). :)

Treasure Quest 08-06-2006 08:20 PM

I'll try again:)

Treasure Quest 08-06-2006 09:00 PM

Used another editor other than note pad and found the code.

Greg clicks Install

fxs158 08-06-2006 09:24 PM

Sorry if this has been asked before, will this work with anonymous proxies?

Paul M 08-06-2006 09:31 PM

No.

Quote:

Obviously this hack relies on the proxy server passing the correct http variables to allow detection.
Obviously anonymous proxyies do not do this, that's the point of them.

Stokerockscene 08-06-2006 09:36 PM

this is a huge help, espeically as my site has been hacked by folk on NTL proxys

fxs158 08-06-2006 09:37 PM

Quote:

Originally Posted by Paul M
No.

Obviously anonymous proxyies do not do this, that's the point of them.


Thanks for the reply, sorry for asking a question that had an obvious answer. I am still installing the hack to give it a whirl.

Cyruski 08-09-2006 01:43 PM

So if a user using anonymous proxy and tries to log on board, he wont be able to, is that what this hack based on ?

rasp187 08-09-2006 01:58 PM

I've noticed it displays the same IP twice for both fields. For example, when a proxy is detected is says:

The real IP is: "IP here"
"IP here again"

The proxy IP is: "IP here"
"IP here again"

Paul M 08-09-2006 05:54 PM

It displays whatever information it is passed - I have seen proxy servers that do that for some bizarre reason.

Zelos 08-09-2006 07:23 PM

I get this when I look at the who's online list: http://img477.imageshack.us/img477/8648/wtfav9.png



If I click one, it says "Unable to resolve IP address". The ips in the posts however are still showing.

Paul M 08-10-2006 01:35 AM

I don't see how anything in this mod could cause that.

Phaedrus 08-10-2006 02:40 AM

This one works perfectly for me. I have tested it and have actually used it banning a member who kept finding proxies... It definitely works. The "anon" proxies are unreliable and after a while they simply give up.

ssslippy 08-10-2006 02:51 AM

I had to add another at the end of the first edit another } otherwise when I tried to upload another product I received errors. Is this a possible mistake on my part or an error in the plugin?

Paul M 08-10-2006 04:23 AM

I think you need to edit your post as the first bit seems wrong.

There are no errors in the plugins, or the code, so I guess it must have been something else you did.

jw00dy 08-10-2006 07:55 AM

Thanks Paul, I was hoping you had this for 3.6, and I'm glad to see you do!

*installed*


All times are GMT. The time now is 03:38 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.01560 seconds
  • Memory Usage 1,808KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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