![]() |
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. |
|
Quote:
|
3.5.4?
|
Quote:
or is 3.5.4 for Use real ip when proxy server is detected. ________ Edsel Pacer |
The 3.5 version, and 3.0 version, are listed in the similar threads at the bottom of this page.
|
thanks paul, i probably wouldn't trust this if i didn't see your name as the author. dunno tho
|
Would this display the dynamic IP assigned to an AOL user and ignore the AOL proxy IP, for example?
|
No, AOL's stupid proxy servers don't pass on the correct variables.
|
anyone tried on vb 3.6 RC2 ?
|
Yes.
|
Quote:
|
Yes.
|
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?
|
Quote:
Quote:
Quote:
|
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. |
Glad to hear. :)
|
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 |
|
Quote:
I install it and all went smoothly. Looking forward to seeing it work. |
downloaded
|
Installed. I have no idea if it is working though...
|
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.
|
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); |
I guess your find isn't working too well, they are there (lines 1557 - 1563). :)
|
I'll try again:)
|
Used another editor other than note pad and found the code.
Greg clicks Install |
Sorry if this has been asked before, will this work with anonymous proxies?
|
No.
Quote:
|
this is a huge help, espeically as my site has been hacked by folk on NTL proxys
|
Quote:
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. |
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 ?
|
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" |
It displays whatever information it is passed - I have seen proxy servers that do that for some bizarre reason.
|
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. |
I don't see how anything in this mod could cause that.
|
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.
|
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?
|
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. |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|