![]() |
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 |
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). |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|