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)

Paul M 03-08-2006 12:09 PM

Why don't you use it for a few days and you will see the answers.

alraqee 03-10-2006 11:27 AM

hi Paul

i realy need that hack and tryed to install, i got this error:

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /data/6/0/552/67/65454/user/52542/xxxxxx/forum/includes/class_core.php on line 2083

and i'm sure of the editing the class_core.php file

what could be the problem??

note: my forum is 3.5.4

please help

alraqee 03-11-2006 07:06 PM

up up any body??

Paul M 03-11-2006 07:44 PM

Code:

please make sure you have clicked the install link - esp if you require support

Stanley Steamer 03-13-2006 11:39 PM

Quote:

Originally Posted by Paul M
Why don't you use it for a few days and you will see the answers.

It works! :up:

derfelix 03-22-2006 06:26 PM

One little teeny request...
As i am just coding a board in 6 languages..
if you place the px.gif in the buttons folder..
it has to be copied in each style.. AND in each language button folder..

any other folder would be great :rolleyes:
otherwise.. excellent!
Felix

Paul M 03-22-2006 07:29 PM

That's where it should belong, so you can vary it from style to style. :)

Nathan2006 03-28-2006 02:57 PM

Thank you Paul :)

Install

David Copeland 04-03-2006 09:49 PM

Quote:

Originally Posted by Paul M
Sadly, No. AOL use proxies that don't pass on the originating IP (which is very poor and annoying, but what do you expect from such a crap company) so they are not detected as such. I don't know what non uk ISP's use them as we are uk based - I believe shaw cable do.


Has anyone had any luck in banning an AOL user?

darla 04-22-2006 01:20 AM

where do i find the class_core.php file???????

Paul M 04-22-2006 01:24 AM

in the includes folder ......

Orix 04-23-2006 09:41 AM

Hi There,


Thanks a lot Paul, great Job, perfect, we could now exclude all fu#$*? users lol :banana:

Install

Orix


Quote:

Originally Posted by Paul M
in the includes folder ......


Krose 04-23-2006 11:14 PM

i installed this last Feb. 28, i mess up with the editing, last week i find my
time to re-edit the core.php..it's working now! thanx again Paul :p

bashy 05-07-2006 12:05 PM

Hi Paul

Mine says The Proxy Server IP Address is: PROXYIP

Whats this all about please?

kurtbarker 05-07-2006 01:59 PM

hey mate, I read back a couple of pages and couldn't see this being asked... but I am running the Whois IP Output hack: https://vborg.vbsupport.ru/showthread.php?t=114602

This changes the IP address in whosonline to display a link, which goes to a whois database to find out information of the uses...

This hack changes the IP address in whos online right? Do we know if these are compatible? Or will showing the Real IP not find a relating link in Whois?

Paul M 05-07-2006 03:32 PM

Quote:

Originally Posted by bashy
Hi Paul

Mine says The Proxy Server IP Address is: PROXYIP

Whats this all about please?

You either haven't done the file edits, or haven't done them properly.

bashy 05-07-2006 03:39 PM

Class_core or sopmmat like that...i will go through it again though to make sure it was done correctly :)

bashy 05-07-2006 03:43 PM

Hi Paul, Just gone through the edits again and they look spot on to me m8??

Paul M 05-07-2006 03:56 PM

Quote:

Originally Posted by bashy
Hi Paul, Just gone through the edits again and they look spot on to me m8??

Have you actually uploaded the edited file and reset any php cache ?

Sorry, but if you have done it right, it's impossible to get what are seeing - PROXYIP is a constant, defined at the same time as IPADDRESS and ALT_IP - it only has the value of 'PROXYIP' if it hasn't been defined, and if you look at the code you will see it's defined by an IF/ELSE, so it always has a value of some sort (and since the same code defines ipaddress and alt_ip, they cannot have values, but proxyip not be set).

bashy 05-07-2006 04:02 PM

Hi m8

I really dont know...i used this hack before and it worked well, since the server move, i upgraded to 3.5.4 and had to install this again but this time round i get the error.... The edited files is deffo on the server...

I aint even sure about posting it on here as its quite a delicate file aint it?

Paul M 05-07-2006 04:12 PM

You are not allowed to post the file. :) Are you using APC or some other php cache ?

You could always send me ftp details, I have a few spare minutes atm.

bashy 05-07-2006 04:21 PM

I have a template compressor but thats all AFAIK
I have sent a PM, thanks :)

Paul M 05-07-2006 04:58 PM

There is nothing wrong now - but a quick scan of posts shows that you obviously had done something wrong, and that you fixed it yourself approximately four hours ago. It worked fine up until April 4th, then nothing at all (not installed) until April 29th (when I assume you installed it again) From April 29th until about 4 hours ago it was not working correctly, it then got fixed and is now working correctly. :)

bashy 05-07-2006 05:08 PM

So is it showing ok to you...cause i still get
The Proxy Server IP Address is: PROXYIP

Paul M 05-07-2006 05:48 PM

As I just explained to you above, you broke it between April 29th and a few hours ago - that information is fixed, it won't change now it's working properly, only new posts (after the fix) will be correct. :)

AraServ 05-31-2006 05:51 AM

Paul M is this hack also give the real IP when some one register an new member ?

i mean in user[ipaddress]

Paul M 05-31-2006 09:40 AM

Whenever it is detected, it will be used, anywhere on the forum.

David Copeland 06-03-2006 11:39 PM

Has anyone had any luck in banning an AOL user?

TygerTyger 06-05-2006 05:56 PM

AOL doesn't pass on the proper information, so you can't ban an AOL member using this mod.

You can just ban them by IP address which will work as effectively as for any other dynamic IP address. i.e. not very well and you might end up banning innocent people.

David Copeland 06-05-2006 09:13 PM

Quote:

Originally Posted by TygerTyger
AOL doesn't pass on the proper information, so you can't ban an AOL member using this mod.

You can just ban them by IP address which will work as effectively as for any other dynamic IP address. i.e. not very well and you might end up banning innocent people.

The problem I have with even looking at an AOL IP address, is that all their IP addresses come out of their Arlington, Virgina site which makes it useless to determine which city the AOL member is connecting from.

ubblite 06-09-2006 06:48 AM

Just wondering if this will be updated to work with vb3.6.0 - I noticed the class_core.php file in 3.6.0 has changed.

Paul M 06-10-2006 06:07 PM

This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.

Sangrun 06-11-2006 02:32 AM

Installed and thank you!

Pamela 06-16-2006 05:59 AM

*clicks install*

Thanks!!! :D

SupremeWeapon 06-17-2006 09:29 PM

PHP 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);


Replace with ;

        
// Paul M - Fetch client IP address & Proxy server address if detected
        
$registry->ipaddress $this->fetch_ip();
        
$registry->alt_ip $this->fetch_alt_ip();
        
define('ALT_IP'$registry->ipaddress);
        if (
$registry->alt_ip == '')
        {
            
define('PROXYIP'''); 
            
define('IPADDRESS'$registry->ipaddress);
        }
        else
        {
            
define('PROXYIP'$registry->ipaddress);
            
define('IPADDRESS'$registry->alt_ip); 
        } 

isnt in the class_core.php for 3.5.4

neither is
PHP Code:

Find ;

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


Replace with ;

        
// Paul M - define session constants
        
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS));
        
define('SESSION_HOST',   substr(IPADDRESS015)); 


ubblite 06-17-2006 10:56 PM

Quote:

Originally Posted by Paul M
This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.

Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.

Paul M 06-17-2006 11:23 PM

Quote:

Originally Posted by SupremeWeapon
isnt in the class_core.php for 3.5.4

I suggest you look again, because it's all there. :)

Paul M 06-17-2006 11:24 PM

Quote:

Originally Posted by ubblite
Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.

It will work fine, but the code to look for has changed slightly (and the changes will be slightly different) - as I said, I will do a 3.6 version, but not atm, we are still only on beta 2.

SupremeWeapon 06-18-2006 01:37 AM

Quote:

Originally Posted by Paul M
I suggest you look again, because it's all there. :)


looking and not seeing. find can't even find it.


edit.. mmk found it.... going through a file line by line word by word isn't fun at all.


***Installed***

jw00dy 06-19-2006 08:39 PM

First off Great Hack, so thank you.

I am however, getting an error that I'm wondering if you can shed some light on?

I get these emailed to me every so often.
Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO proxycache (ip, listed, dateline) VALUES ('24.225.90.201', 0, 1150736342);

MySQL Error : Duplicate entry '24.225.90.201' for key 1 Error Number : 1062
Date : Monday, June 19th 2006 @ 10:59:10 AM
Script : http://allthingsmoto.com/forums/index.php
Referrer : http://allthingsmoto.com/
IP Address : 24.225.90.201
Username : superrooster
Classname : vb_database
It looks like they are only stating that theirs a duplicate entry, but I'm not completely sure. That and they are somewhat annoying.

Any idea? TIA


All times are GMT. The time now is 02:09 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.01539 seconds
  • Memory Usage 1,837KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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