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=231873)

doctorsexy 08-19-2012 07:58 AM

Turned cloudflare off. it was sending alot of spammers

http://i441.photobucket.com/albums/q...7/Capture3.png

it was showing this . then it went back to all showing cloudflares ips. so dont know if it works or not...

fasters 09-05-2012 02:28 AM

Not working for me.
I have follow the instruction, but nothing change.
what should I do?

Paul M 09-07-2012 11:19 AM

You could start by explaining what you mean by "but nothing change".

What didnt change that you were expecting ?

jpierce 09-16-2012 12:14 PM

I installed as directed, including the edits to class_core but I still only see the Cloudflare IPs.

What steps can I take to debug the issue?

Thanks!

John

jpierce 09-16-2012 12:34 PM

I seemed to have fixed it by installing mod_cloudflare on the server.

jasff 09-28-2012 02:24 AM

Hey gang, I am a brand new VB forum owner. I have a new site. Although new, I have been a VB moderator for several years, with some Admin access. I'm on a crash course of learning. Have completed a lot of tasks.

I am very interested in this mod. I've never done a mod before and wanted to know how easy this is? I know instructions are attached in the download. Just curious what level of difficulty this mod is?

Thanks in advance.

Paul M 09-28-2012 12:48 PM

Its quite simple, one product to install, one (optional) file edit.

MG Zebra 10-01-2012 05:20 AM

Not sure if you've included this information in the other versions of this modification but it would be greatly appreciated if you included where the class_core.php file was for future reference instead of having people need to search through 5 pages of comments until someone has asked about it. I'm referring to version 4200. I'm new to the vb file system so I had no clue where it was at. I'll be installing this to see if it works for me.

mat8861 10-18-2012 03:24 PM

Imported the product, installed the icon Did the mod to /includes/class_core.php:

PHP Code:

        // set debug mode
        
$this->debug = !empty($this->config['Misc']['debug']);
        
define('DEBUG'$this->debug);

        
$proxy false;
        if (isset(
$this->config['Misc']['proxyiplist']))
        {
            
$proxylist array_map('trim'explode(','$this->config['Misc']['proxyiplist'])); 

            if (
in_array($this->ipaddress$proxylist))
            {
                
$proxy true;
                if (isset(
$this->config['Misc']['proxyipheader']) 
                AND isset(
$_SERVER[$this->config['Misc']['proxyipheader']]))
                {
                    
$altip $_SERVER[$this->config['Misc']['proxyipheader']];
                    if (
$this->input->filter_ip($altip))
                    {
                        
$this->alt_ip $altip;
                    }
                }
            }
        }
        
// Detect ALL.
        
if ($registry->ipaddress == $registry->alt_ip)
        {
            
define('PROXYIP',''); 
        }
        else
        {
            
$proxy true;
            
define('PROXYIP',$registry->ipaddress);
        }

        if (
$proxy)
        {
            
define('ALT_IP'$this->ipaddress);
            
define('IPADDRESS'$this->alt_ip);
        }
        else
        {
            
define('IPADDRESS'$this->ipaddress);
            
define('ALT_IP'$this->alt_ip);
        }
        
        
define('SESSION_HOST',   substr(IPADDRESS015));
    }

    
/**
    * Takes the contents of an array and recursively uses each title/data
    * pair to create a new defined constant.
    */ 

Tried to login thru couple anonimous proxy ips (61.135.209.203:81 and 89.248.168.139:8080)...no "red" ip

https://vborg.vbsupport.ru/external/2012/10/25.jpg

Paul M 10-18-2012 08:55 PM

Quote:

Originally Posted by mat8861 (Post 2374041)
Tried to login thru couple anonimous proxy ips (61.135.209.203:81 and 89.248.168.139:8080)...no "red" ip


As it says (in bold) in the first post ;
Quote:

Note: This hack relies on the proxy server passing the correct http variables to allow detection. If they are not passed then detection will not work.
By definition, annonymous proxies do not pass on these variables.


All times are GMT. The time now is 05:04 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.01458 seconds
  • Memory Usage 1,761KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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