Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Proxy Detector v3.1 - for Posts and WOL Details »»
Proxy Detector v3.1 - for Posts and WOL
Version: 1.00, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 02-07-2004 Last Update: 06-20-2004 Installs: 68
DB Changes
 
No support by the author.

############################################
# Hack Name: Proxy Detector v3.1
# Orgiginal hack by Takara and Stadler (for vB 2.0)
# Modified for vB 3.0.1 and Addon by HacNho
# Compatibility to vB 3.0.x
# Date: 06.20.04
############################################
# History:
# Version 3.1: (update 06.20.04)
# 1. Display ProxyIP in WhoIsOnline list (in UserAgent section)
#
# Version 3.0:
# 1. Compatibility to vB 3.0 RC4
# 2. Admin with "adminpermission" will see the "ProxyIP when overmouse if the IP is not shown
# 3. Proxy IP will be displayed with IP address in show IP page
#
# # Version 2.0 ...
# # Version 1.0 by Takara and Stadler (for vB 2.x)

###########################################
# Description: This is little hack detects via the Environmental Variable
# HTTP_X_FORWARDED_FOR if the user is using a proxy. Most proxys give out this
# variable. If it is it will display it out for you, and allow you to view the
# real IP of the person, and proxy IP when you click the link (in Post or Who'sOnline).
#
# Files Edited: 5 - includes/init.php
# - Files edited for proxyIP in posts: 2- includes/functions_newpost.php, postings.php
# - Files edited for proxyIP in WOL: 2- includes/sessions.php, online.php
# Templates Modified for proxyIP in posts: 2 - postbit_ip_show, postbit_ip_hidden
# Templates Modified for ProxyIP in WOL: 1 - whosonlinebit
# SQL Query to run: 2 (add proxyip in post and session table)
# Phrase to add: thread_displayproxyip

#
# Remember to backup your files and DB before making any changes!
############################################

INSTALL: HN-ProxyDetextor-301.txt (8.9 KB)

Upgrade from version 3.0 or only install ProxyDetector for WOL:
HN-ProxyDetextor-WOL.txt (11.5 KB) - Update 06.20.04

Upgrade from version for vB beta7 to version 3.0HN-ProxyDetextor-upgrade-b7-RC4.txt (3.5 KB)

SCREENSHOTS:
proxydetected.jpg (7.8 KB)
proxyip-WOL.gif (10.1 KB)



*NEW: version 3.1 will save and show proxyIP in Who is Online page.
In order to see proxy, you need to turn "UserAgent" on:
http://YourDomain/Yourforum/online.php?ua=1


Remember to click

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-06-2004, 08:39 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NexVision
yes that was my post and adding that to my front-end error message worked I didnt realize that the alt ip hack was installed my partner may have done it ill search for that hack and remove it thank you for all the help sorry im such a noob
here's what you are looking for
https://vborg.vbsupport.ru/showpost....6&postcount=32

it's up to you, which one you want to use. floris' hack may work well too.
Reply With Quote
  #43  
Old 05-07-2004, 12:03 AM
InsaneContender InsaneContender is offline
 
Join Date: May 2003
Location: Sacramento, CA
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great - but it was HELL to figure out your TXT install file... you should make it a little bit easier to read...
Reply With Quote
  #44  
Old 05-07-2004, 06:09 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by InsaneContender
This is great - but it was HELL to figure out your TXT install file... you should make it a little bit easier to read...
I didnt write the file, i generate the file. It'd be much easier if you use the tool YaME (Yet another Mod Editor) that go with BoardMod (www.boardmod.org)

otherwise, just here's the rule:

each commands should open by <command> and closed by </command>
Reply With Quote
  #45  
Old 06-08-2004, 01:17 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't work here

first I get an error by the MYSQL: Duplicate column name 'proxyip'

But this column isn't in the Database! So I can't remove it too.

Second of all: The IP Address is: *. The host name is: *. but I don't see the Proxy message.
Reply With Quote
  #46  
Old 06-08-2004, 01:50 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, that problem is solved.

So it's working now. But: when I block an IP address I can't access the forum. When I use proxy, I can access again. When I'm posting the mod can see that I am with proxyserver... but> how can I keep them banned? The system must see that I'm on proxy and the originally address is banned.
Is this possbile?

Someone who knows the anwser?
Reply With Quote
  #47  
Old 06-09-2004, 10:04 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Soccerquest
Ok, that problem is solved.

So it's working now. But: when I block an IP address I can't access the forum. When I use proxy, I can access again. When I'm posting the mod can see that I am with proxyserver... but> how can I keep them banned? The system must see that I'm on proxy and the originally address is banned.
Is this possbile?

Someone who knows the anwser?
This proxy is only for posts, and record "real IP" into post table. I did not do anything with online users and banning system.

I think BAN system do work with regular IP (which would be proxy IP in your case), so if you want to ban someone, you have to ban his proxy IP. there's nothing related to real IP revealed yet.

For rightnow, I am not interested in banning system (I dont ban anyone, there's no bad guy in my site tho), so ... I dont think I can help you yet.


anyway, if you wanna write it yourself, check out this part in functions.php

Code:
 
// ###################### Start checkipban #######################
function verify_ip_ban()
{
// checkes to see if the current ip address is banned
global $vboptions, $session;
$vboptions['banip'] = trim($vboptions['banip']);
if ($vboptions['enablebanning'] == 1 AND $vboptions['banip'])
{
$addresses = explode(' ', preg_replace("/[[:space:]]+/", " ", $vboptions['banip']) );
foreach ($addresses AS $val)
{
if (strpos(' ' . IPADDRESS, ' ' . trim($val)) !== false)
{
	eval(print_standard_error('error_banip'));
}
}
}
}

You need to mahe sure that $proxyip is detected, and then compare this value with $val, something like

Code:
 
if (strpos(' ' . $proxyip, ' ' . trim($val)) !== false)
{
	eval(print_standard_error('error_banip'));
}

Maybe you just need to add the code bellow

Code:
 
if (strpos(' ' . IPADDRESS, ' ' . trim($val)) !== false)
{ 
	eval(print_standard_error('error_banip'));
}

remember, I DID NOT test the script, so if you try, give it some extra carefull
Reply With Quote
  #48  
Old 06-10-2004, 10:46 AM
chet chet is offline
 
Join Date: Feb 2004
Location: Nottingham (UK)
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Once this is installed, where does the information get shown about the users IP's

Regerds
Reply With Quote
  #49  
Old 06-11-2004, 03:57 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chet
Once this is installed, where does the information get shown about the users IP's

Regerds
there is an IP link or icon under your post (if you have permission to view posts' IP).

https://vborg.vbsupport.ru/attachmen...chmentid=16621
Reply With Quote
  #50  
Old 06-11-2004, 12:01 PM
chet chet is offline
 
Join Date: Feb 2004
Location: Nottingham (UK)
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have followed all the steps, but all I see is the IP address as before, no proxy or other information is there, what could be wrong

Regards

Chet
Reply With Quote
  #51  
Old 06-11-2004, 05:02 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chet
I have followed all the steps, but all I see is the IP address as before, no proxy or other information is there, what could be wrong

Regards

Chet
did you change the post_ip template? if yes, then maybe you dont have Proxy (or proxy not detectable).

Check the posts table, and see if you have any information in proxyip column for any post:

- open post table (in phpMyAdmin, for example), and sort by proxyip, see if you have any IP in there, or run this querry:

SELECT * FROM `post` WHERE 'proxyip' !='';

If there're some IPs in there, means you did record the proxy IPs, check the template. Otherwise, it could either be none of the new posts posted under any ip OR your proxy function doesnt work.

MAKE SURE that you did all the changes in the files correct.
- add any IP into some post that you can check, using phpMyAdmin, and see if it shows up in your testing post
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:00 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.06346 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete