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)

fxs158 08-30-2006 06:22 PM

Just installed the mod, things seem to work well with one exception. Under the ip on the whos online screen one of my users now says unknown. Is this because he is using anon proxy?

fxs158 08-30-2006 06:25 PM

Quote:

Originally Posted by Total666
Weird - is your step 3 different ??

Step 3.

In class_core.php ;

Find ;

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


Replace with ;

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

I put on bold the difference.

fxs158 08-30-2006 08:36 PM

Member is using tmobile sidekick (cellphone), for some reason after the hack instead of an ip it shows a message that says unknown.

This is the only member that shows this anomalie.

Paul M 08-30-2006 10:51 PM

Quote:

Originally Posted by Total666
doing the code changes to the class_core.php file .. ( step 3 )


MY existing code

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


The new code from the read me

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


these look unchanged ?? Wondering .. Total

That's not what is in the current zip, that's the previous (old) version.

fxs158 08-30-2006 11:13 PM

Is there a way to show the porxy ip, if the peerson is using anon rather than showing the unknown message? When the member posted I clicked on the red icon "that indicates a proxy present" and at least it showed me the proxy ip. But when I look on the who is online, I get the unkbown ip message.

Total666 08-31-2006 12:19 AM

Quote:

Originally Posted by Paul M
That's not what is in the current zip, that's the previous (old) version.


Thanks man , all good , weird I kept getting the wrong version ( I believe something to do with winzip ) I deleted the temp dir and NOW I have the correct new update , good work ...

Scorpior 09-02-2006 06:57 AM

So the "The real ip can be banned by admins." Can you make it so that the proxy IP can also be banned by admins as well?

I have a situation that the proxy IP is detected properly, but the real IP is listed at 127.0.0.1. This is not the case for all of them, but I do see this happening in one particular proxy. So yea, making proxy IPs also bannable (so it checks the real IP and proxy IP to ban) would be helpful here.

Paul M 09-02-2006 08:25 AM

That would (I think) be another file edit, and probably not used by most people - but I'll consider it when I next work on this.

BruceWest 09-03-2006 03:00 AM

Love the product! Testing it out now!

I noticed that after installation, all original (registration) IPs were missing from the database... at least I no longer see them in the AdminCP.

Cheers!

Luke Brown256 09-08-2006 03:34 PM

hi just a quick ntoe i followed instructions completely, but it always shows the person as having a proxy even when some users are not using a proxy and it then displays the same 2 IP addresses.
(Just to note it DOES correctly identify proxy users and report 2 different IP addresses aswell)

Robbed 09-09-2006 12:47 AM

So when do we see that icon that's included in this zip.

NeitherSparky 09-09-2006 03:11 AM

Quote:

Originally Posted by Robbed
So when do we see that icon that's included in this zip.

If someone was using a proxy when they made a post, the included icon will replace the normal little computer-looking one you (or anyone else you have set up to see IPs on posts) see in the postbit.

Robbed 09-09-2006 11:55 PM

Thanks

smoknz28 09-11-2006 08:35 PM

You mentioned that this is packaged with vb v3.6. I just upgraded to vb v3.6.0....so does this mean that this hack is already included in my version of vb?

Thank you,
Gonzo

Paul M 09-11-2006 10:46 PM

Who mentioned that :confused:

This is not part of standard vb, if it was then there would be no point in this release. :)

Scorpior 09-13-2006 12:17 AM

Quote:

Originally Posted by Paul M
That would (I think) be another file edit, and probably not used by most people - but I'll consider it when I next work on this.

Hmm, can I just ban the IP 127.0.0.1 then? Because again, proxy is detected properly, but real IP is detected at 127.0.0.1.

Paul M 09-13-2006 12:55 AM

Yes you can.

You can also turn off detection of private range addresses if you want - but you have to edit one of the changes in class_core.php ( find $ignoreprivate = false and change it to true).

vchase 09-13-2006 04:13 AM

Paul, please tell what i did wrong :surprised: i changed the code exactly as the instruction, upload the image to the directory, import the xml as product. So it was done. I know a guy with proxy ip, he is online ...but i see nothing from who's online or from his post :surprised: Why ?

Paul M 09-13-2006 08:48 AM

Quote:

Originally Posted by vchase
Paul, please tell what i did wrong :surprised: i changed the code exactly as the instruction, upload the image to the director, import the xml as product. So it was done. I know a guy with proxy ip, he is online ...but i see nothing from who's online or from his post :surprised: Why ?

As the notes say ;

Quote:

This hack makes the forum always use the members real ip when a proxy is detected ....

etc etc ......

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

optrex 09-17-2006 07:41 PM

I've started to get a red icon with all posts.

Details include
The Real IP Address is: 192.xxx.xxx.xxx
static-192-xxx-xxx-xxx.adsl.provider.net
The Proxy Server IP Address is: PROXYIP

The IP's are identical (just used x's for security in the post). I'm running 3.6.1

Paul M 09-17-2006 11:56 PM

You didn't re-edit class_core.php when you upgraded.

teedizz 09-18-2006 12:57 AM

hey, Paul..... will this work against sites like http://www.siteunlocker.com/ .... im noticing one previously banned user bragging about using that site to join back. thanks for any info bro.

optrex 09-18-2006 08:17 AM

Thanks Paul. I've tried the edit twice now and get this error on both occasions

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /xxxx/xxxx/htdocs/xxxx/class_core.php on line 2130

Paul M 09-18-2006 12:31 PM

Edit it a third time, and don't remove the extra closing } bracket you keep deleting (in step 1) this time :)

optrex 09-18-2006 01:41 PM

:nervous: thanks Paul, the simple things in life can lead to a lot of frustration

teedizz 09-18-2006 04:56 PM

paul, can you answer my question i listed above bro. thanks.

Paul M 09-18-2006 05:03 PM

As it says in the main post ;

Quote:

Obviously this hack relies on the proxy server passing the correct http variables to allow detection.
I doubt siteunblocker are going to do that, it would be pretty stupid of them.

daylight 09-18-2006 05:12 PM

i have got error while opening admincp

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/*************/includes/class_core.php on line 2128

i have edited php file as instructed
and made a backup of the old file (which i am using now)

just wondering if you can help me out?

Paul M 09-18-2006 10:30 PM

Go back about four posts (previous page, post #104).

daylight 09-19-2006 12:03 AM

Quote:

Originally Posted by Paul M
Go back about four posts (previous page, post #104).

thanks buddy....simple double mistake first ..haven't notice that } and second not read the post fully.
thanks again
btw...
i was looking for something to be safe from Ddos...will hack help me in this ? as the people who attack my site use proxies ..
any information or advice are highly admired.....:)

BruceWest 09-19-2006 12:29 AM

Working great so far, Paul! Thanks again!

Quick question: I wasn't able to get the mod re-installed after our initial upgrade to 3.6.1, resulting in a fair number of posts incorrectly marked as proxied... (my fault, I know). Is there anything I can do to remove proxy status from posts less than 2 days old? Their unifying characteristic, of course, is The Proxy Server IP Address is: PROXYIP.

Bruce

EDIT: I should point out that I just recently re-modified the class_core.php.

Paul M 09-21-2006 07:11 AM

Run this SQL ;

Code:

UPDATE post SET proxyip = ' ' WHERE proxyip = 'PROXYIP'

teedizz 09-22-2006 11:07 PM

Nevermind, wasnt this hacks falut for my error. Sorry..haha

thetootall 09-24-2006 02:50 AM

Great mod; works perfectly! :clicks install:

Total666 09-25-2006 04:01 AM

Quote:

Originally Posted by Paul M
Run this SQL ;

Code:

UPDATE post SET proxyip = ' ' WHERE proxyip = 'PROXYIP'


Thanks , you are a smart dude .. Thanks again .. Total

CORSO 09-28-2006 11:06 AM

I have a problem

This addon is detected and blocking users who conect at home, with no proxyss

Help???

Sorry by my english...

Paul M 09-28-2006 12:04 PM

This does not block anything, are you sure you are in the right thread ?

photongbic 10-02-2006 10:50 AM

Installation went well but after installing your mod, the "Google Spider" entry in Who's Online doesn't show an IP address like all the other entries do.

Thoughts?

EDIT - Reworded to make the orginal question less confusing....sorry....

Paul M 10-02-2006 01:14 PM

I have no idea what "Google Spider" is.

photongbic 10-02-2006 01:42 PM

Quote:

Originally Posted by Paul M
I have no idea what "Google Spider" is.

In Who's Online, Google Spider is the name given to the web spider (bot) that Google uses to probe web pages for content. Before adding your mod, there was always something in the IP address field for this entry but now it is blank. What would cause your mod to return a blank field?

Thanks!


All times are GMT. The time now is 10:10 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.01705 seconds
  • Memory Usage 1,819KB
  • 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
  • (11)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