vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Proxy ip to real ip conversion (https://vborg.vbsupport.ru/showthread.php?t=69295)

yoyoyoyo 08-21-2005 12:38 PM

Quote:

Originally Posted by Paul M
There was no intention to be nasty, I'm sorry if you took it that way - I simply answered your questions. :)

In that case I apologize for taking it that way.

Can you explain which variable the http is passed through to check if it is a proxy IP? Is it simply checking the IP against the x-originating IP address, or is it doing something else as well?

Paul M 08-21-2005 03:28 PM

Proxy servers pass the originating ip in a variety of ways depending on the software they run (is there a standard I wonder ?). The most common ones are X_FORWARDED_FOR & CLIENT_IP. The hack checks these (and others) for a vailid IP address.

yoyoyoyo 08-21-2005 04:00 PM

Quote:

Originally Posted by Paul M
Proxy servers pass the originating ip in a variety of ways depending on the software they run (is there a standard I wonder ?). The most common ones are X_FORWARDED_FOR & CLIENT_IP. The hack checks these (and others) for a vailid IP address.

cool- thanks for the info. What are some of the "others"?

CP, 08-21-2005 04:32 PM

This seems like a very good hack, ive installed other hacks, but this one seems a little hard onto following some of the steps, im stuck at the second step already, anybody have or maybe got an easier translation for a newbie like me?? So i can follow clear instructions and details??

bjs144 08-24-2005 01:51 PM

Works really well.

Thanks again Paul.

chriswible 09-09-2005 01:46 AM

Great idea, great hack. Functionality is perfect.

Of course, it took a bit of modding to make this work with the "extra IP info" hack, but I managed. :p (I realize someone's probably done it already.)

Zephyrus 09-12-2005 11:02 AM

Hmm, I installed the extra IP info hack, and I don't know if it'll work with this, care to add me on MSN or AIM or YIM to teach me? Anyone?

Anyone will do.
MSN: szehan80@hotmail
AIM: szehan72
YIM: szehan72

Paul M 09-12-2005 11:57 AM

Quote:

Originally Posted by ZephNeo
Hmm, I installed the extra IP info hack, and I don't know if it'll work with this, care to add me on MSN or AIM or YIM to teach me? Anyone?

As far as functionality is concerned they will work fine, they do not intefere with each other. The only clash is the displayiing of the icon via postbit_ip template. One suggested solution to this is here.


Another solution, that I e-mailed to someone the other week, is to do this ;

Follow the proxy-to-real instructions and replace postbit_ip - ignore the ipinfo instructions that mention this template. Then in postbit template (or postbit_legacy if you use it)

Find ;

Code:

<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
Add this below ;

Code:

<tr><td class="vbmenu_option"><a href="ipinfo.php?$session[sessionurl]p=$post[postid]" target='_blank' >Display IP Information</a></td></tr>
After doing this you should be able to view the ip information for any post like this ;

Click on the posters name - this should display the DHTML list of options, at the bottom of the list (under "Add xxxx to Your Buddy List") should be "Display IP Information" - simply click on it.

Zephyrus 09-13-2005 12:53 PM

Theres another way, I just figured it out:
at step 3, theres this code, and..

Code:

<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<if condition="($post[proxyip] != '')">
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ipp.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<else />

After this..
Code:

<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</else></if>
</if>

I'll replace it with the code that ipinfo tells me to
Code:

Find:
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
 
Replace with:
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>

This way, I'll see the ipinfo when a proxy is not detected, but when a proxy is detected, the "red ipp.gif" icon appears and I'll see the proxy info, hmm its probably all good. =)

Paul M 09-13-2005 04:05 PM

Like anything, there is usually more than one way to do something. :)


All times are GMT. The time now is 09:18 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.01207 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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