vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I do this in Vbulletin... (https://vborg.vbsupport.ru/showthread.php?t=184785)

Raffaele 07-09-2008 04:38 AM

How can I do this in Vbulletin...
 
Hi everyone, how can i do this... i would like to add this into my Vbulletin this is the code...

<?
if (getenv(HTTP_X_FORWARDED_FOR)) {
$ip_address = getenv(HTTP_X_FORWARDED_FOR);
} else {
$ip_address = getenv(REMOTE_ADDR);
}
?>

code taken from here>>> http://www.justin-cook.com/wp/2006/1...rs-ip-address/

what this code does is should give me the real IP address of the user even if he/she is on a proxy during registering.

Why i want to do this i noticed some User that register is always spamming the forum even if i have the Human Interface checked.

Any help is very appropriated,
Raffaele

Dismounted 07-09-2008 05:03 AM

That will only give you the IP address if the proxy the user is using passes on the IP. Any determined user will not use a proxy that passes this information on.

In any case, vBulletin already implements that code (albeit a slightly more complex and better version).

Raffaele 07-09-2008 05:21 AM

WOW... that was fast :) thank you i didn't know that vbulletin has it already!

Thank you Dismounted very much.

Raffaele


All times are GMT. The time now is 09:19 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.01876 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete