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 06-10-2007 08:51 PM

Quote:

Originally Posted by Mrdby (Post 1265714)
AGAIN....I did the edits...and same thing...SHOULD i email you the file i edited?

What do you mean "again" ? at no point have you previously confirmed you have done any edits, and the fact you get PROXYIP means that either you haven't, or you have done them incorrectly, or you haven't uploaded them, or some other problem with them. You cannot get that error if the edits are correct and in use.

Mrdby 06-10-2007 08:54 PM

ok i'm thinking you would have known we do edits before we actually post a problem. Yes i uploaded the xml file..and I did the edits and still the same thing..Now if I did something wrong..I'm sorry...But...could I send you the file so you can yourself? Its to long to post on here.

Paul M 06-10-2007 09:51 PM

Yes, you can send me the file.

Mrdby 06-10-2007 10:59 PM

sent u an email..THANKS!!

hoof 06-10-2007 11:25 PM

Thanks great Hack/Mod

Crys 06-17-2007 02:47 PM

Very nice mod. Thanks :)

~ Crys ^^

Shazz 06-17-2007 02:54 PM

Still working when upgraded good mod still! :)

Mrdby 06-17-2007 03:45 PM

thanks paul for checking!!!! works like a charm!!!

msvi007 06-19-2007 09:14 AM

Can you please help me out, I upgraded to the latest version of vbulletin and now I get this:

The Real IP Address is: 74.110.33.163
CPE0011114f0fcf-CM00407b876e1a.cpe.net.cable.rogers.com
The Proxy Server IP Address is: PROXYIP

I did the file updates just as I did before, I am attaching my updated file.

Can you please tell me where I went wrong?

Thank you in advance for your help :)

Paul M 06-19-2007 11:50 AM

I've removed the file as you are not permitted to upload complete vb files.

However, I checked it first and found no issues - are you sure you have actually uploaded it (to the correct place). Also, if you run your own server and use a php cache, make sure that is reset so it picks up the new file.

msvi007 06-19-2007 03:02 PM

Quote:

Originally Posted by Paul M (Post 1271701)
I've removed the file as you are not permitted to upload complete vb files.

However, I checked it first and found no issues - are you sure you have actually uploaded it (to the correct place). Also, if you run your own server and use a php cache, make sure that is reset so it picks up the new file.


Paul, yes, it is uploaded to the includes folder and I do not run my own server. The only thing different from the last time I used it was I upgraded to the latest version of VB. Would you be able to take a look for me? Please let me know.

Paul M 06-19-2007 03:56 PM

If you want to PM me ftp and admin access details then yes, I can take a look.

msvi007 06-19-2007 05:14 PM

ok weird, i don't know if you had a chance to look already, but it looks like I am only seeing that on 1 thread in a hidden forum. I am seeing that for everyone, including myself. The rest of the board seems to have the regular icon. weird.

Outbackmark 06-20-2007 12:32 PM

Installed and lookin good, thanks Paul.

Mrdby 06-20-2007 01:54 PM

now suppose they don't post...is there anyway we can detect if you click on their profile or even view whos online?

Paul M 06-20-2007 02:48 PM

As is says ;

Quote:

* The real ip (or host) is displayed in the who's online page.

Mrdby 06-20-2007 04:19 PM

Along with all the other Ip addresses right? Wouldn;t it be better for that certain person using a server to stand out when viewing whos online? Like have a star or something beside their name? Or even admins will get emails or pm notifications when someone is using one? Just a thought..lol Thanks Paul.

bryanb 06-20-2007 08:40 PM

This may seem like a lame question, but how do I know it's working? I'm running vBull. 3.6.7 PL1 and I have the newest version of IP info running as well (v1.0.3)

I've installed your product - being meticulous on editing the php file right. Followed the instructions to a T and....now what?

Is there anyway to test the product, or should I just wait and watch the "users online" page? Any suggestions?

Paul M 06-21-2007 12:39 AM

Unless you have access to a proxy server (that passes on it's details) then there isn't much you can do except keep an eye out.

Dotara 06-28-2007 08:14 PM

I not able to see the icon anywhere. I've uploaded the px.gif to both default and chestnut style's button dir. Can anyone post a screen shot of this mod so I can understand where the button shows? Thanks in advance.

Carlos2 07-11-2007 04:59 AM

Problem Solved.

Installed ;)

TonyComix 07-29-2007 06:25 AM

sorry, im such a newb... but can someone tell me WHERE I go to install this, i downloaded the file and have it up but i need to know where exactly to go to edit:
class_core.php ;

Find ;

function fetch_ip()
{
return $_SERVER['REMOTE_ADDR'];
}

Paul M 08-04-2007 05:00 PM

class_core.php is one of the standard vbulletin files (in the includes folder).

Mrdby 08-10-2007 11:59 AM

3.6.8 i just updated to..and all the members have that red icon on their post. Any updates?

Paul M 08-10-2007 07:34 PM

You have remembered this from the main post ?

Quote:

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

Ben6308 09-01-2007 12:15 AM

I'm having problems with this on 3.6.8. All posts have the "Proxy Detected" Red IP box, and when you click on it, it says:

The Real IP Address is: (whatever that users IP is)
(the hostname)
The Proxy Server IP Address is: PROXYIP

Help!

Paul M 09-01-2007 02:35 PM

Read the post above yours.

ickie 09-01-2007 03:48 PM

I installed it last night and everything is working as stated
thanks Paul
v3.6.8

bulbasnore 09-03-2007 05:51 PM

Thanks for this hack. I have 3.6.7_pl1 at the moment. I would love to see this with no code edits... do you think the necessary hook will ever be available?

One thing that I like to have, is a report for me and our staff to see who has been using proxies lately.

Below I present a SQL query for such a report and an xml export of a report for those who are using Logician's excellent WebTemplates mod.

Code:

SELECT username, count( * )
FROM  `post`
WHERE  `proxyip` REGEXP '[0-9].*'
GROUP BY username
ORDER BY  `username` ASC

The above query gives you how many posts by a proxy for each user, in total.

The attached XML file list username, proxy ip, real ip for the last 30 days in descending order of post date.

Paul M 09-03-2007 06:49 PM

Quote:

Originally Posted by bulbasnore (Post 1331580)
Thanks for this hack. I have 3.6.7_pl1 at the moment. I would love to see this with no code edits... do you think the necessary hook will ever be available?


It will never happen because the edited code is part of the very basic core code that is run before the hook system is even initialized.

Alfa1 09-05-2007 07:11 PM

Most of my members now display a red button and when I check it out this is displayed:
"The Proxy Server IP Address is: PROXYIP"
This is even displayed for myself and I sure am not on a proxy. How can I fix this?

Paul M 09-05-2007 10:02 PM

You fix it by doing the required file edits.

Alfa1 09-06-2007 03:26 PM

The file edits instructions do no longer match vb 3.6.8's class_core.php's content.

Step 3:
Find:
PHP Code:

        // define session constants
        
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session
        
define('SESSION_HOST',   substr($registry->ipaddress015)); 

This is not there. What is there is:
PHP Code:

        // define session constants
        
define('SESSION_HOST',   substr($registry->ipaddress015)); 

I assume that this would need to be replaced. But since I am no coder and it seems more has been altered in class_core.php's content, I am not certain.

Paul M 09-06-2007 05:24 PM

You need to re-read the instructions ;

Step 3 clearly states ;

Quote:

Step 3 (vB Versions 3.6.0 to 3.6.3 only).


Steps 4 & 5 state ;

Quote:

Step 4 (vB Versions 3.6.4 onwards only).

Step 5 (vB Versions 3.6.4 onwards only).

Alfa1 09-07-2007 11:44 AM

I seem to have been working with an older version of the instructions. I have now applied the new instructions to vb 3.6.8, but this has not solved it. Do I need to wait for a cron job to be passed or is there something else I need to do?

Paul M 09-07-2007 03:59 PM

I'm not sure what you mean isn't solved. If you have done the file edits correctly then new posts posts will now contain the correct data. Old posts will not be updated.

Alfa1 09-07-2007 04:14 PM

That explains it. Thanks.

dosadno 09-14-2007 11:15 AM

I am having som problems on 3.6.8 version, I cant find the code in step 2. in the class_core.php, so I dont know where to put replacmen code given in the instructions? Help!!!

THNX in front!

Missing code:
Code:

Find ;

                // 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 09-14-2007 02:44 PM

If you have the default class_core file for 3.6.8 then the code is there, perhaps your text editor is not searching properly, try just looking for "// fetch client IP address".

CMGU 09-14-2007 04:58 PM

nice thanks


All times are GMT. The time now is 09:59 AM.

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.01721 seconds
  • Memory Usage 1,820KB
  • 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
  • (2)bbcode_php_printable
  • (7)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