إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 09-11-2009, 11:10 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

Hi,

From the first vBulletin release I have used (3.5.X), until now (3.8.4). The IP address function is:
PHP Code:
function fetch_ip(){
return
$_SERVER['REMOTE_ADDR'];
}


This code doesn't give the real IP Address if the user is using proxy.
In many countries, specially in the Middle East, all requests are sent through proxy, So you wont get the real IP address using $_SERVER['REMOTE_ADDR'], this means that many users will have the same IP address.

Today I have changed the fetch_ip() function in class_core.php file, I used this code:

PHP Code:
function fetch_ip(){
if(isset(
$_SERVER['HTTP_CLIENT_IP'])){
return
$_SERVER['HTTP_CLIENT_IP'];
}else if(isset(
$_SERVER['HTTP_X_FORWARDED_FOR'])){
return
$_SERVER['HTTP_X_FORWARDED_FOR'];
}else{
return
$_SERVER['REMOTE_ADDR'];
}
}


After changing the function code, I noticed that the online users number have increased from 500 to 1200 !!, this happened because now it gets the real IP address, and it counts the real number of online visitors.


So, if vBulletin uses the second code which gives the real IP, it would be better for all forums so they can get the real statistics for their forums, and when they ban an IP address, they will ban 1 person only, not a group of people.


Regards,
Ibrahim Moahammed
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة


المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
Option to Display Users Real First and Last Name under Screen name محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 07-09-2010 07:40 PM
All users accessing forum from same IP address - issues logging in محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 02-17-2010 04:40 PM
Help with Query: users who have changed their email address محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 08-26-2009 10:30 AM
Bulk delete users by email address? محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 05-03-2009 09:50 AM
How to prevent users from changing their email address? محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 04-07-2009 07:50 PM


الساعة الآن 03:18 AM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML