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 10-02-2006 05:34 PM

Hmm, it looks like some spiders (Google and MSN) are putting text data in one of the http headers that should contain an ip address, and the current logic doesn't handle this well. I'll release an update later.

Paul M 10-05-2006 08:50 AM

An updated version as been uploaded this morning (v2.24).

This should fix the problem caused by Google and MSN spiders putting non ip data in the http headers. It should also stop some of the file editing mistakes people make as the edits and instructions have changed.

To upgrade you need to upload the latest product and then take a default copy of class_core.php (3.6.x) and apply the new file edits to it.

:cool:

Neal-UK 10-05-2006 10:25 AM

Great thankyou, was thinking i'd done something wrong when it showed noip@google or something in the information.

Medina 10-05-2006 11:42 AM

Thanks for updating Paul ;)

Shazz 10-05-2006 01:04 PM

Thanx paul

Zelos 10-05-2006 03:08 PM

Is it still compatible with the IP info mod?
Also, it says the xml file has been updated as recently as october 2nd. Should we reupload it or something?

Zelos 10-05-2006 04:10 PM

I'm getting this error:
Code:

Fatal error: Call to undefined method vB_Input_Cleaner::fetch_ip() in /home/.taj/themys2/forums.themysticalforestzone.com/Forums/includes/class_core.php on line 1558

Paul M 10-05-2006 04:18 PM

Quote:

Originally Posted by Zelos
I'm getting this error:
Code:

Fatal error: Call to undefined method vB_Input_Cleaner::fetch_ip() in /home/.taj/themys2/forums.themysticalforestzone.com/Forums/includes/class_core.php on line 1558

Then I would guess you have made a mistake in the file edits (probably Step 1).

Check what you have done, or start with a fresh class_core and do them again.

photongbic 10-05-2006 07:12 PM

Works great for me...thanks!!

Zelos 10-05-2006 07:33 PM

Quote:

Originally Posted by Paul M
Then I would guess you have made a mistake in the file edits (probably Step 1).

Check what you have done, or start with a fresh class_core and do them again.

Yeah, I accidently replaced instead of inserting underneath :o

Still, is it still compatible with the IP info mod?
Also, it says the xml file has been updated as recently as october 2nd. Should we reupload it or something?

GNDI 10-06-2006 06:56 AM

Thanks for the update :)

Total666 10-08-2006 03:20 PM

It started working now :) all good .. Total

Ikoru 10-08-2006 08:35 PM

Parse error: syntax error, unexpected T_STRING, expecting '&' or T_VARIABLE or T_CONST in /home/ikorucom/public_html/forum/includes/class_core.php on line 262

I keep doing it exactly to the book, I've done it 5 times now.

Paul M 10-08-2006 08:40 PM

I have no idea what you are doing, but line 262 is at least 1000 lines away from any of the edits this mod requires.

Ikoru 10-08-2006 08:47 PM

On line 262 is function db_connect($servername, $port, $username, $password, $usepconnect).

I haven't touched that thought and this is the first time I'm editing the file.

Paul M 10-08-2006 08:52 PM

Use a text editor with line numbers.

The edits for this hack are beyond line 1500. You may well be editing the correct place - since that error is so far away from any edits, it would suggest that the copy of class_core.php you are starting with is faulty. Get a fresh copy from the original zip file.

Ikoru 10-09-2006 07:28 AM

Quote:

Originally Posted by Paul M
Use a text editor with line numbers.

The edits for this hack are beyond line 1500. You may well be editing the correct place - since that error is so far away from any edits, it would suggest that the copy of class_core.php you are starting with is faulty. Get a fresh copy from the original zip file.

Yeah I used dreamweaver to edit it this time, and also used a new copy of class_core.php. There must have been something wrong with mine, thank you for your help.

jcodemasters 10-09-2006 06:14 PM

if i am not wrong i can block ip address from this mod. right?

Paul M 10-09-2006 07:22 PM

You cannot block ip addesses with this as such, ip bans are a standard part of vb.

chuBaRo 10-15-2006 12:51 AM

Does this work with vb 3.6.1 ? Thank you.

Shazz 10-15-2006 12:58 AM

Quote:

Originally Posted by chuBaRo
Does this work with vb 3.6.1 ? Thank you.

Yes...

Q:
On a few of my members, I know they don't use proxy's and they say they don't, It shows that they do?

jw00dy 10-15-2006 05:58 AM

Some of mine show that way too. Particularly AOL users. I doubt the users actually know they r using a proxy. I don't think it's anything you need to worry about.

Paul M 10-15-2006 10:10 AM

What people say, and reality, are two different things. In the UK many ntl users do not realise they are routed via proxy servers.

Red Matrix 10-16-2006 10:14 AM

This was very easy to install, instructions were easy to follow.

Thanks. +install

mtha 10-21-2006 01:43 AM

Quote:

v2.20 : Updated for vb 3.6. IP Info detection added.
Paul, when IP Info is detected, it links to IP Info => No real IP displayed?

Seems like the two hacks should be merged somehow? :)

Alfa1 10-21-2006 02:02 AM

Very neat hack Paul! Works like a charm.

Paul M 10-21-2006 03:46 AM

Quote:

Originally Posted by mtha
Paul, when IP Info is detected, it links to IP Info => No real IP displayed?

IP info will display any real ip info collected, obviously there isn't going to be much until this has been installed for a while.

Lucas 11-04-2006 05:42 PM

How can I see if it is working or not?

apiasto 11-04-2006 05:56 PM

Like it, but one problem instead of red picture i get a X mark when proxy is detected. What i am doing wrong. help

beishe8 11-04-2006 06:13 PM

Quote:

Originally Posted by LucasG
How can I see if it is working or not?

I second that... Can't see anything.

Regards,beishe8

Shazz 11-04-2006 06:55 PM

Well they have to be using a PROXY

Paul M 11-04-2006 07:37 PM

Quote:

Originally Posted by apiasto
Like it, but one problem instead of red picture i get a X mark when proxy is detected. What i am doing wrong. help

You haven't uploaded the image to the correct place for your style.

Wild-Wing 11-04-2006 11:11 PM

oh im glad to see this ported over its been helpful for canning problem people

Wild-Wing 11-04-2006 11:11 PM

your the best paul!

beishe8 11-05-2006 12:56 AM

Quote:

Originally Posted by Shazz
Well they have to be using a PROXY

I'm using a proxy to try it...

www.mywebsite/forum
Log in as "myname" .


New TAB.
www.mywebsite/forum
Currently Active Users
"myname"

Change TAB.
Who's Online?

"myname" XX.111.....
guest 85.195.123.22
http://Anonymouse.org/ (Unix)

Shouldn't it be twice XX.111.... ? Puzzles me...

Paul M 11-05-2006 01:03 AM

Nope, only one ip is displayed in WOL.

beishe8 11-05-2006 01:26 AM

Quote:

Originally Posted by Paul M
Nope, only one ip is displayed in WOL.

"myname" XX.111.....
"guest" should be XX.111....

The two are the same! Me.

Paul M 11-05-2006 01:37 AM

Sorry, I don't understand you.

beishe8 11-05-2006 02:10 AM

Quote:

Originally Posted by Paul M
Sorry, I don't understand you.

I normally log in once as "user1". I am the admin.

Then log in again as "user2" with the help of a proxy.

Currently active users:


As user2 I can see online: user1 and user2. No IP

As user1 I can see online:
user1 IP=XX.111...
user2 IP=YY.222... Why not XX.111... ?

user1 and user2 have the same IP because both of them are myself.

I should see twice XX.111.
I see YY.222 which is the proxy. This hack in my case does not show the real IP...

Paul M 11-05-2006 09:33 AM

Please 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.
Obviously annonymouse is not going to pass on those variables (nor will any "annonymous" proxy) - they wouldn't be annonymous if they did. :)


All times are GMT. The time now is 02:23 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.01490 seconds
  • Memory Usage 1,797KB
  • 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
  • (2)bbcode_code_printable
  • (13)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