PDA

View Full Version : Miscellaneous Hacks - LOGECT IP Address Detector


LOGECT
01-09-2012, 11:00 PM
Info: By using this hack your visitors can see theirs IP Address on footer.

Screenshot:

https://vborg.vbsupport.ru/external/2012/01/52.jpg

Installation:
-Import XML file (as product) through AdminCP: Plugin System > Manage Products > [Add/Import Product]

To set options:
Go to: vBulletin Options > LOGECT - IP Address Detcetor

Versions:
v1.0 First rel
v1.1 Code optimized and back link removed.

Disasterpiece
01-10-2012, 02:04 PM
Wow... a backlink for like... 2 lines of code? No way I'm installing this.

ob_start();
$logect_ip = $_SERVER['REMOTE_ADDR'];
$php_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('footer',array('logect_ip ' => $logect_ip));
can be reduced to:
vB_Template::preRegister('footer',array('logect_ip ' => $_SERVER['REMOTE_ADDR']));
the output buffer thing is just completely useless and adds unnecessary process to your mod.

also lol @ 2 vB_TemplateParser for placing just a link into the footer... are you serious about this? :D

TheSupportForum
01-10-2012, 03:02 PM
i would not suggest this product

1) it has external advertising when clicking on IP address it links to http://www.logect.com/

2) you need to be aware of the law before revealing someones IP address on there site, potentially what this mod does it a link track, http://www.logect.com/ will track its IP address as its a referral from your own website

OldSchoolDSL
01-10-2012, 03:23 PM
@ LOGECT

In my opinion, everything you release is basically spam.

Your other (previous) modifications were complete dependent on your site as everything actually loaded on your site (see translation modifications).

OldSchoolDSL
01-10-2012, 03:24 PM
i would not suggest this product

1) it has external advertising when clicking on IP address it links to http://www.logect.com/

2) you need to be aware of the law before revealing someones IP address on there site, potentially what this mod does it a link track, http://www.logect.com/ will track its IP address as its a referral from your own website

Which I think violates the terms :eek:

reported (the mod, not your post)

TheSupportForum
01-10-2012, 03:30 PM
Which I think violates the terms :eek:

reported (the mod, not your post)

done the same, yes i also think it violates the terms

LOGECT
01-10-2012, 05:35 PM
Wow... a backlink for like... 2 lines of code? No way I'm installing this.

ob_start();
$logect_ip = $_SERVER['REMOTE_ADDR'];
$php_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('footer',array('logect_ip ' => $logect_ip));can be reduced to:
vB_Template::preRegister('footer',array('logect_ip ' => $_SERVER['REMOTE_ADDR']));the output buffer thing is just completely useless and adds unnecessary process to your mod.

also lol @ 2 vB_TemplateParser for placing just a link into the footer... are you serious about this? :D

Thanks for the feed back dear Disasterpiece, i will update the code and remove that back link :)

LOGECT
01-10-2012, 05:37 PM
@ LOGECT

In my opinion, everything you release is basically spam.

Your other (previous) modifications were complete dependent on your site as everything actually loaded on your site (see translation modifications).

Stop using and copying (https://vborg.vbsupport.ru/showthread.php?p=2286073#post2286073) my mod if you think that is a spam!

Boofo
01-10-2012, 05:41 PM
How about this? Logged In and Logged Out. And it checks for proxies.

Disasterpiece
01-10-2012, 05:46 PM
Good to see that you finally got to your senses. It might still be somewhat overpowered to use a product for something you could accomplish with templatevars, but at least it's fairplay without the unnecessarily blown-up code and the backlink.

//e: @boofo: that actually looks damn nice. I just can't think of any use case where a user might want to see that kind of information (since he already knows which browser/os he's using, but still. :up:

Boofo
01-10-2012, 05:50 PM
The browser part of it is nice especially in Opera when I have to mask myself on the site in Firefox because Opera seems to make the Find feature in the templates edit disappear. Plus if you are testing stuff in different browsers and get confused, like us old people do sometimes. ;)

I basically did it to see if I could actually pull it off.

LOGECT
01-10-2012, 07:23 PM
How about this? Logged In and Logged Out. And it checks for proxies.

Hi Boofo, it looks nice, but you can't get the "real" IP address for sure unless you implement some sort of authentication protocol at the application layer that encodes the IP address,
the IP data packet can be rewritten arbitrarily by someone "in the middle" who has access to it. E.g., a proxy, router, gateway, etc.

Boofo
01-10-2012, 07:24 PM
So YOU say. ;)

https://vborg.vbsupport.ru/showthread.php?t=276749

RobbieZ
01-10-2012, 09:00 PM
Whats a LOGECT IP Address Detecetor << spelling please in title!

Boofo
01-11-2012, 08:40 AM
@boofo: that actually looks damn nice. I just can't think of any use case where a user might want to see that kind of information (since he already knows which browser/os he's using, but still. :up:

Thank you for the kind words. I am updating the mod now as sort of a footer toolbox that will have the copyright text from the $vboptions as a setting and phrase as well as an "extended Time is now" display. I will be adding more to it as time goes on.

Dr.osamA
01-15-2012, 10:39 AM
installed

thank you