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)

YLP1 01-15-2006 03:33 PM

Quote:

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

[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

Quote:

Originally Posted by teedizz
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 ;

Quote:

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

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

Paul M 01-23-2006 07:44 PM

Quote:

Originally Posted by Moosa
Nice Hack, Installed but ...
got some error on apache error logs

vB 3.5.3 on Linux Fedoracore II

Those 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

Quote:

Originally Posted by Smiry Kin's
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

I 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!

[high]* IC-Games clicks install[/high]

Paul M 02-09-2006 01:19 AM

Quote:

Originally Posted by IC-Games
One question, why the change to px.gif from ip.gif.

Quote:

Originally Posted by IC-Games
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 ?

Quote:

This hack makes the forum always use the members real ip when a proxy is detected,
Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by Stanley Steamer
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?


All times are GMT. The time now is 04:22 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,829KB
  • 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
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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