Jump to content

proxy detection script


mark103

Recommended Posts

Hi guys,

 

I am creating a script as I am using this to detection the proxy server levels.

 

<?php
//proxy levels
//Level 3 Elite Proxy, connection looks like a regular client
//Level 2 Anonymous Proxy, no ip is forworded but target site could still tell it's a proxy
//Level 1 Transparent Proxy, ip is forworded and target site would be able to tell it's a proxy

if(!$_SERVER['HTTP_X_FORWARDED_FOR'] && !$_SERVER['HTTP_VIA'] && !$_SERVER['HTTP_PROXY_CONNECTION']){
echo '3';
} elseif(!$_SERVER['HTTP_X_FORWARDED_FOR']){
echo '2';
} else echo '1';
?>

 

 

I want the script to check the ip that if the proxy server is a Codeen/PlanetLab and BotNet proxy servers, then place on level one and if they are safe/unsafe to use. I cannot find the code to do the methods.

 

 

Please help me!

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/213014-proxy-detection-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.