Raffaele
07-09-2008, 04:38 AM
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/11/28/how-to-retrieve-a-visitors-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
<?
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/11/28/how-to-retrieve-a-visitors-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