Results 1 to 6 of 6
Thread: Script to check IP and proxy ?
-
06-20-2005, 05:48 PM #1Web Hosting Guru
- Join Date
- Jan 2005
- Posts
- 268
Script to check IP and proxy ?
I have seen few web have this option, When people come to your site and that website will tell you correct which is your ip and your proxy ip( if you are using proxy), this is nice, I try to search on google but can't find this type of script. Does anyone know any kind of php script like this ? thanks
-
06-20-2005, 06:16 PM #2Junior Guru
- Join Date
- May 2004
- Posts
- 237
Yes, i wanna know too
-
06-20-2005, 10:43 PM #3Web Hosting Evangelist
- Join Date
- May 2003
- Posts
- 477
check "HTTP_X_FORWARDED_FOR":
http://www.stayinvisible.com/index.p...ymity_of_proxyDixiy.com - Professional Web Hosting Provider since 2002
AutoCreation.net - Automation Solution for cPanel Hosting! + Illegal File Scanner
WHDir.net - Your complete Web Hosting Directory with Hosting/Server Tutorials
-
06-21-2005, 01:44 AM #4Junior Guru
- Join Date
- May 2004
- Posts
- 237
Do you know any php script for that ? i am looking for a script not a software , btw thank you
-
06-21-2005, 02:51 AM #5Engineer
- Join Date
- Jan 2005
- Location
- Scotland, UK
- Posts
- 2,681
HTTP_X_FORWARDED_FOR is a variable passed threw php.
Code:<? echo $_SERVER['HTTP_X_FORWARDED_FOR']; ?>
Code:<? $proxy = $_SERVER['HTTP_X_FORWARDED_FOR']; $ip = $_SERVER['REMOTE_ADDR']; if ($proxy != $ip) { echo "Proxy: ".$proxy; } else { echo "Proxy: none"; } ?>
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com
-
06-21-2005, 07:12 AM #6Web Hosting Evangelist
- Join Date
- May 2003
- Posts
- 477
Please read it carefully, it shows you how to use HTTP_X_FORWARDED_FOR, HTTP_VIA to check if it is a proxy IP.
Originally posted by tinhnho
Do you know any php script for that ? i am looking for a script not a software , btw thank youDixiy.com - Professional Web Hosting Provider since 2002
AutoCreation.net - Automation Solution for cPanel Hosting! + Illegal File Scanner
WHDir.net - Your complete Web Hosting Directory with Hosting/Server Tutorials